Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeyUsersREC authored Oct 28, 2023
1 parent 3b2e897 commit f0f26c7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,15 +554,16 @@ async def POST_duty_on_actions(
)

try:
shift_channel = discord.utils.get(
guild.channels, id=configItem["shift_management"]["channel"]
)
shift_channel = bot.get_channel(configItem["shift_management"]["channel"])
except:
return 500

print(563)
print(shift_channel)
if shift_channel is None:
return

return 400
print('!!!!')
print(shift_channel)
await shift_channel.send(embed=embed)

nickname_prefix = None
Expand Down

0 comments on commit f0f26c7

Please sign in to comment.