feat(moderation): made the bot dm you the moderationset mysql button
All checks were successful
Pylint / Pylint (push) Successful in 1m7s

This commit is contained in:
Seaswimmer 2023-09-25 00:06:13 -04:00
parent e9098c144b
commit e01c27d79d
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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):