Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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:
|