Merge emergency fixes

This commit is contained in:
Zeva Rose 2022-09-14 11:32:50 -06:00
commit c17b0a5b34

View file

@ -69,10 +69,10 @@ class MessageEventMixin:
setting = Setting(guild=message.guild.id, setting="noinvite", value=True) setting = Setting(guild=message.guild.id, setting="noinvite", value=True)
await setting.commit() await setting.commit()
if match: if match:
guild_invites = await message.guild.fetch_invites() guild_invites = [x.code for x in await message.guild.fetch_invites()]
if message.guild.vanity_url_code: if message.guild.vanity_url_code:
guild_invites.append(message.guild.vanity_url_code) guild_invites.append(message.guild.vanity_url_code)
allowed = [x.code for x in guild_invites] + [ allowed = guild_invites + [
"dbrand", "dbrand",
"VtgZntXcnZ", "VtgZntXcnZ",
"gPfYGbvTCE", "gPfYGbvTCE",