mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
feat(melonx): add discord buttons for melonx commands
Co-authored-by: neoarz <tyrantneo740@gmail.com>
This commit is contained in:
@@ -31,6 +31,12 @@ def error_command():
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/error.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
|
||||
@@ -35,6 +35,12 @@ def crash_command():
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/gamecrash.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
|
||||
@@ -37,6 +37,12 @@ def ios26_command():
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/ios26.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
|
||||
@@ -37,7 +37,13 @@ def mods_command():
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/mods.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
|
||||
@@ -31,6 +31,12 @@ def requirements_command():
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/requirements.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
|
||||
@@ -41,6 +41,12 @@ def transfer_command():
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/melonx/transfer.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="MeloNX Discord",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://discord.gg/EMXB2XYQgA",
|
||||
emoji="<:Discord:1428762057758474280>"
|
||||
))
|
||||
|
||||
if context.interaction:
|
||||
|
||||
Reference in New Issue
Block a user