Fix response to settings clear
This commit is contained in:
parent
c4e822d732
commit
d278ca8b20
1 changed files with 6 additions and 6 deletions
|
@ -251,15 +251,15 @@ class SettingsCog(Scale):
|
|||
messages=message,
|
||||
timeout=60 * 5,
|
||||
)
|
||||
content = "***Are you sure?***"
|
||||
if context.context.custom_id == "yes":
|
||||
async for setting in Setting.find(q(guild=ctx.guild.id)):
|
||||
await setting.delete()
|
||||
await ctx.send("Guild settings cleared")
|
||||
else:
|
||||
for row in components:
|
||||
for component in row.components:
|
||||
component.disabled = True
|
||||
await message.edit(components=components)
|
||||
content = "Guild settings cleared"
|
||||
for row in components:
|
||||
for component in row.components:
|
||||
component.disabled = True
|
||||
await context.context.edit_origin(content=content, components=components)
|
||||
except asyncio.TimeoutError:
|
||||
for row in components:
|
||||
for component in row.components:
|
||||
|
|
Loading…
Add table
Reference in a new issue