[Seen] Allow spaces in user names

This commit is contained in:
aikaterna
2022-07-26 09:06:25 -07:00
committed by GitHub
parent 18b903bebd
commit 06f6d04372

View File

@@ -76,7 +76,7 @@ class Seen(commands.Cog):
@commands.guild_only() @commands.guild_only()
@commands.command(name="seen") @commands.command(name="seen")
@commands.bot_has_permissions(embed_links=True) @commands.bot_has_permissions(embed_links=True)
async def _seen(self, ctx, author: discord.Member): async def _seen(self, ctx, *, author: discord.Member):
"""Shows last time a user was seen in chat.""" """Shows last time a user was seen in chat."""
member_seen_config = await self.config.member(author).seen() member_seen_config = await self.config.member(author).seen()
member_seen_cache = self._cache.get(author.guild.id, {}).get(author.id, None) member_seen_cache = self._cache.get(author.guild.id, {}).get(author.id, None)