mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 18:33:02 +00:00
Use f-strings in more places that were missed
This commit is contained in:
@ -102,10 +102,10 @@ A quick example to showcase how events work:
|
||||
|
||||
class MyClient(discord.Client):
|
||||
async def on_ready(self):
|
||||
print('Logged on as {0}!'.format(self.user))
|
||||
print(f'Logged on as {self.user}!')
|
||||
|
||||
async def on_message(self, message):
|
||||
print('Message from {0.author}: {0.content}'.format(message))
|
||||
print(f'Message from {messsage.author}: {message.content}')
|
||||
|
||||
client = MyClient()
|
||||
client.run('my token goes here')
|
||||
|
Reference in New Issue
Block a user