mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 17:24:55 +00:00
Update moderation.py
This commit is contained in:
@@ -34,6 +34,7 @@ class Moderation (discord.Cog):
|
|||||||
try: c.execute("SELECT * FROM moderation WHERE guild_id = ?", (str(message.guild.id),))
|
try: c.execute("SELECT * FROM moderation WHERE guild_id = ?", (str(message.guild.id),))
|
||||||
except: return
|
except: return
|
||||||
data = c.fetchone()
|
data = c.fetchone()
|
||||||
|
if data is None: return
|
||||||
channel = self.bot.get_channel(int(data[1]))
|
channel = self.bot.get_channel(int(data[1]))
|
||||||
is_enabled = data[2]
|
is_enabled = data[2]
|
||||||
moderator_role = message.guild.get_role(int(data[3]))
|
moderator_role = message.guild.get_role(int(data[3]))
|
||||||
|
|||||||
Reference in New Issue
Block a user