[tweak] "Game for {user.mention}:"

`user.display_name` doesn't tag the user who requested the game. Using `user.mention` makes at tags, which also means users can search for games using Discord search (`Game for mentions:@foobar`)
This commit is contained in:
Danny Ben-David 2020-12-28 18:06:50 -05:00 committed by GitHub
parent 96c9692d09
commit c059992ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -553,7 +553,7 @@ async def watch_game(channel, newgame, user = None):
in_emoji = discord.utils.get(client.emojis, id = 791578957244792832) in_emoji = discord.utils.get(client.emojis, id = 791578957244792832)
if user is not None: if user is not None:
await channel.send(f"Game for {user.display_name}:") await channel.send(f"Game for {user.mention}:")
embed = await channel.send("Starting...") embed = await channel.send("Starting...")
await asyncio.sleep(1) await asyncio.sleep(1)
await embed.pin() await embed.pin()