dont read ctx's channels, get the channels from teh guild were looping over

This commit is contained in:
Luke Robles 2022-10-19 08:15:07 -07:00
parent 3eb7d2d21a
commit d0b517bbd4

View File

@ -117,8 +117,7 @@ class ServerUtils(commands.Cog):
async def my_callback(interaction):
for guild in self.bot.guilds:
if guild.name == select.values[0]:
print("Found %s" % guild)
channel = discord.utils.get(ctx.guild.channels, name="general")
channel = discord.utils.get(guild.channels, name="general")
channel_id = channel.id
await self.bot.get_channel(channel_id).send(message)