lunarflu HF staff commited on
Commit
e32943a
1 Parent(s): 9b2d35f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -255,7 +255,7 @@ async def top_gradio_threads(ctx, channel_id):
255
  if ctx.author.id == 811235357663297546:
256
  message_counts = {}
257
 
258
- channel = await bot.get_channel(channel_id)
259
  print(channel)
260
  threads = channel.threads
261
  print(threads)
 
255
  if ctx.author.id == 811235357663297546:
256
  message_counts = {}
257
 
258
+ channel = await bot.fetch_channel(channel_id)
259
  print(channel)
260
  threads = channel.threads
261
  print(threads)