#channel exists

1 messages · Page 1 of 1 (latest)

bleak bay
#

Is there a way to check if a channel(per id) exists in any discord server where the bot is in?

frozen scarabBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

stray condor
#

just fetch a channel and check if the returning object is None

#

channel = await client.fetch_channel(id)
if channel == None:
  print("Channel does not exists")
bleak bay
#

ok thanks