diff --git a/utils/api.py b/utils/api.py index 6eb868c4..f092ccbd 100644 --- a/utils/api.py +++ b/utils/api.py @@ -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