Skip to content

Commit

Permalink
Remove invite command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachaa-Thanasius committed Mar 23, 2024
1 parent 4d63930 commit 67ed967
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions musicbot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,6 @@ async def _help(itx: discord.Interaction[MusicBot], ephemeral: bool = True) -> N
await itx.response.send_message(embed=help_embed, ephemeral=ephemeral)


@app_commands.command()
async def invite(itx: discord.Interaction[MusicBot]) -> None:
"""Get a link to invite this bot to a server."""

embed = discord.Embed(description="Click the link below to invite me to one of your servers.")
view = discord.ui.View().add_item(discord.ui.Button(label="Invite", url=itx.client.invite_link))
await itx.response.send_message(embed=embed, view=view, ephemeral=True)


APP_COMMANDS = [
muse_connect,
muse_play,
Expand All @@ -607,7 +598,6 @@ async def invite(itx: discord.Interaction[MusicBot]) -> None:
muse_seek,
muse_volume,
_help,
invite,
muse_export,
muse_import,
]

0 comments on commit 67ed967

Please sign in to comment.