mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
Add a setting for adding a tick reaction when help is DMed (#4467)
* Tick response for help command * Make this a setting instead Co-authored-by: palmtree5 <palmtree5+3577255@users.noreply.github.com>
This commit is contained in:
@@ -2242,6 +2242,22 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
else:
|
||||
await ctx.send(_("Help will filter hidden commands."))
|
||||
|
||||
@helpset.command(name="usetick")
|
||||
async def helpset_usetick(self, ctx: commands.Context, use_tick: bool = None):
|
||||
"""
|
||||
This allows the help command message to be ticked if help is sent in a DM.
|
||||
|
||||
Defaults to False.
|
||||
Using this without a setting will toggle.
|
||||
"""
|
||||
if use_tick is None:
|
||||
use_tick = not await ctx.bot._config.help.use_tick()
|
||||
await ctx.bot._config.help.use_tick.set(use_tick)
|
||||
if use_tick:
|
||||
await ctx.send(_("Help will now tick the command when sent in a DM."))
|
||||
else:
|
||||
await ctx.send(_("Help will not tick the command when sent in a DM."))
|
||||
|
||||
@helpset.command(name="verifychecks")
|
||||
async def helpset_permfilter(self, ctx: commands.Context, verify: bool = None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user