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 222b0c7 commit 721d977
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1242,9 +1242,8 @@ async def POST_punishment_logged(self, authorization: Annotated[str | None, Head
)

if designated_channel is None:
designated_channel = discord.utils.get(
guild.channels, id=configItem["punishments"]["channel"]
)
print(configItem['punishments']['channel']
designated_channel = bot.get_channel(configItem['punishments']['channel'])


shift = await bot.shift_management.get_current_shift(
Expand Down

0 comments on commit 721d977

Please sign in to comment.