lunarflu HF staff commited on
Commit
c76f5d6
1 Parent(s): 56cc113

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -254,8 +254,8 @@ async def top_gradio(ctx, channel_id):
254
  async def top_gradio_threads(ctx, parent_id):
255
  if ctx.author.id == 811235357663297546:
256
  message_counts = {}
257
-
258
- all_channels = await guild.fetch_channels()
259
  filtered_threads = [channel for channel in all_channels if isinstance(channel, discord.Thread) and channel.parent_id == parent_id]
260
 
261
  for thread in filtered_threads:
 
254
  async def top_gradio_threads(ctx, parent_id):
255
  if ctx.author.id == 811235357663297546:
256
  message_counts = {}
257
+
258
+ all_channels = await ctx.guild.fetch_channels()
259
  filtered_threads = [channel for channel in all_channels if isinstance(channel, discord.Thread) and channel.parent_id == parent_id]
260
 
261
  for thread in filtered_threads: