Skip to content

Commit 5f7dc27

Browse files
BritishBenjiDamego
andauthored
docs: fix typo in example (#1501)
* Update bot.py Update to `client.app.name` to match current framework based on https://discord.com/channels/789032594456576001/1133152068442538195 Signed-off-by: BritishBenji <[email protected]> * Update examples/bot.py correct missed mention of `me` Co-authored-by: Damego <[email protected]> Signed-off-by: BritishBenji <[email protected]> --------- Signed-off-by: BritishBenji <[email protected]> Co-authored-by: Damego <[email protected]>
1 parent 850a170 commit 5f7dc27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
# You can provide the name of the event, prefixed by an "on_", or by telling the event decorator what event it is.
2323
@interactions.listen()
2424
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}.")
25+
# We can use the client "app" attribute to get information about the bot.
26+
print(f"We're online! We've logged in as {client.app.name}.")
2727

2828
# We're also able to use property methods to gather additional data.
2929
print(f"Our latency is {round(client.latency)} ms.")

0 commit comments

Comments
 (0)