Fix name conflicts in star add

This commit is contained in:
Zeva Rose 2022-04-19 11:50:12 -06:00
parent a20449f7b2
commit e66b15b2d6

View file

@ -131,9 +131,9 @@ class StarboardCog(Scale):
channel_list = []
to_delete = []
for starboard in starboards:
channel = await ctx.guild.fetch_channel(starboard.channel)
if channel:
channel_list.append(channel)
c = await ctx.guild.fetch_channel(starboard.channel)
if c:
channel_list.append(c)
else:
to_delete.append(starboard)