properly get guild id for resume
This commit is contained in:
parent
c5530c259b
commit
bf9afd9792
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ class Notifications(Cog):
|
||||||
Resume notifications in this guild
|
Resume notifications in this guild
|
||||||
"""
|
"""
|
||||||
|
|
||||||
params = (ctx.author.id, ctx.guild_id)
|
params = (ctx.author.id, ctx.guild.id)
|
||||||
if await ctx.bot.db.fetch_exists("SELECT * FROM user_pauses WHERE user_id=? AND guild_id=?", params):
|
if await ctx.bot.db.fetch_exists("SELECT * FROM user_pauses WHERE user_id=? AND guild_id=?", params):
|
||||||
await ctx.bot.db.execute("DELETE FROM user_pauses WHERE user_id=? AND guild_id=?", params)
|
await ctx.bot.db.execute("DELETE FROM user_pauses WHERE user_id=? AND guild_id=?", params)
|
||||||
await ctx.bot.db.commit()
|
await ctx.bot.db.commit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue