mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[Commands] Adds support for non interactive use (#2746)
Adds assume_yes to context Changes cleanup's 100+ check Changes cog update.
This commit is contained in:
@@ -33,6 +33,9 @@ class Cleanup(commands.Cog):
|
||||
Tries its best to cleanup after itself if the response is positive.
|
||||
"""
|
||||
|
||||
if ctx.assume_yes:
|
||||
return True
|
||||
|
||||
prompt = await ctx.send(
|
||||
_("Are you sure you want to delete {number} messages? (y/n)").format(number=number)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user