added a missing import

This commit is contained in:
Seaswimmer 2023-03-03 15:11:05 -05:00
parent 53b7cf90ab
commit 49bef584b4

View file

@ -13,7 +13,8 @@ from redbot.core.utils.chat_formatting import (
humanize_timedelta,
)
from redbot.core.utils.common_filters import (
filter_invites
filter_invites,
escape_spoilers_and_mass_mentions
)
@ -346,6 +347,15 @@ class Info(commands.Cog):
string += f"{status_string}\n"
return string
async def get_names_and_nicks(self, user):
names = await self.config.user(user).past_names()
nicks = await self.config.member(user).past_nicks()
if names:
names = [escape_spoilers_and_mass_mentions(name) for name in names if name]
if nicks:
nicks = [escape_spoilers_and_mass_mentions(nick) for nick in nicks if nick]
return names, nicks
@commands.command()
@commands.guild_only()
@commands.bot_has_permissions(embed_links=True)