Code snippet:
async def ping_start(msg, target_channel_id, target_message_id):
if msg == "floodfrightcmd":
msg = "!!floodfrightbuttons/"
print("Entered async ping start")
global automatecmd
global automateDebounce
print(automatecmd)
print(target_channel_id)
target_channel = client.get_channel(target_channel_id)
print(target_message_id)
target_message = await target_channel.fetch_message(target_message_id)
For some reason, target_channel is returning with nothing. I can t tell why this is the case. When printed, target_channel_id was the correct channel ID and target_message_id was the correct message ID.
Also tried replacing target_channel = client.get_channel(target_channel_id)
with target_channel = client.get_guild(1043374167967408161).get_channel(target_channel_id)
but it still wouldn t work and would show the same error.
How would I fix this?