update the info command to use self.bot since we're in a cog

This commit is contained in:
Luke Robles 2022-09-13 15:34:30 -07:00
parent 4b4d8a3803
commit 0abd1b292c

View File

@ -134,8 +134,8 @@ class ServerUtils(commands.Cog):
inline=False,
)
embed.add_field(
name="Servers using %s" % bot.user.name,
value="\n".join("[%s](%s)" % (x.name, x.jump_url) for x in bot.guilds),
name="Servers using %s" % self.bot.user.name,
value="\n".join("[%s](%s)" % (x.name, x.jump_url) for x in self.bot.guilds),
)
embed.set_thumbnail(url=server.icon)