lunarflu HF staff commited on
Commit
41f6d43
1 Parent(s): bb61616

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -237,9 +237,9 @@ async def count_forum_threads(ctx, time: int):
237
  async def top_gradio(ctx, channel_id):
238
  if ctx.author.id == 811235357663297546:
239
  message_counts = {}
240
- channel = bot.get_channel(channel_id)
241
-
242
  try:
 
 
243
  async for message in channel.history(limit=None):
244
  message_counts[message.author] = message_counts.get(message.author, 0) + 1
245
  except discord.Forbidden:
 
237
  async def top_gradio(ctx, channel_id):
238
  if ctx.author.id == 811235357663297546:
239
  message_counts = {}
 
 
240
  try:
241
+ channel = await bot.fetch_channel(channel_id)
242
+
243
  async for message in channel.history(limit=None):
244
  message_counts[message.author] = message_counts.get(message.author, 0) + 1
245
  except discord.Forbidden: