mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix type errors in all examples
This commit is contained in:
1 parent
7e2ca02fd1
commit
4f539b710f
26 files changed
+124
-16
No files matched your search
@@ -4,6 +4,9 @@ import discord
|
||||
|
||||
|
||||
class MyClient(discord.Client):
|
||||
# Suppress error on the User attribute being None since it fills up later
|
||||
user: discord.ClientUser
|
||||
|
||||
async def on_ready(self):
|
||||
print(f'Logged in as {self.user} (ID: {self.user.id})')
|
||||
print('------')
|
||||
|
||||
Reference in new issue
Block a user