Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,8 +96,7 @@ async def count(ctx):
|
|
| 96 |
for channel in ctx.guild.text_channels:
|
| 97 |
try:
|
| 98 |
async for message in channel.history(limit=None):
|
| 99 |
-
|
| 100 |
-
message_counts[message.author] = message_counts.get(message.author, 0) + 1
|
| 101 |
except discord.Forbidden:
|
| 102 |
# Handle the Forbidden error
|
| 103 |
await ctx.send(f"Missing access to read messages in {channel.name}")
|
|
|
|
| 96 |
for channel in ctx.guild.text_channels:
|
| 97 |
try:
|
| 98 |
async for message in channel.history(limit=None):
|
| 99 |
+
message_counts[message.author] = message_counts.get(message.author, 0) + 1
|
|
|
|
| 100 |
except discord.Forbidden:
|
| 101 |
# Handle the Forbidden error
|
| 102 |
await ctx.send(f"Missing access to read messages in {channel.name}")
|