We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9b5106d + 43a565c commit 98715e0Copy full SHA for 98715e0
examples/bot.py
@@ -22,8 +22,8 @@
22
# You can provide the name of the event, prefixed by an "on_", or by telling the event decorator what event it is.
23
@interactions.listen()
24
async def on_ready():
25
- # We can use the client "me" attribute to get information about the bot.
26
- print(f"We're online! We've logged in as {client.me.name}.")
+ # We can use the client "app" attribute to get information about the bot.
+ print(f"We're online! We've logged in as {client.app.name}.")
27
28
# We're also able to use property methods to gather additional data.
29
print(f"Our latency is {round(client.latency)} ms.")
0 commit comments