feat(moderation): made the bot dm you the moderationset mysql button
All checks were successful
Pylint / Pylint (push) Successful in 1m7s
All checks were successful
Pylint / Pylint (push) Successful in 1m7s
This commit is contained in:
parent
e9098c144b
commit
e01c27d79d
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ class Moderation(commands.Cog):
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def moderationset_mysql(self, ctx: commands.Context):
|
async def moderationset_mysql(self, ctx: commands.Context):
|
||||||
"""Configure MySQL connection details."""
|
"""Configure MySQL connection details."""
|
||||||
await ctx.send(content="Click the button below to configure your MySQL connection details.", view=self.ConfigButtons(60))
|
await ctx.message.add_reaction("✅")
|
||||||
|
await ctx.author.send(content="Click the button below to configure your MySQL connection details.", view=self.ConfigButtons(60))
|
||||||
|
|
||||||
class ConfigButtons(discord.ui.View):
|
class ConfigButtons(discord.ui.View):
|
||||||
def __init__(self, timeout):
|
def __init__(self, timeout):
|
||||||
|
|
Loading…
Reference in a new issue