How to use a SlashCommand to play music in that user who invoked it's channel #981
Unanswered
mimic-the-mad
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Replace |
Beta Was this translation helpful? Give feedback.
0 replies
-
Use interaction not ctx |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to find a way for users to use a slash command called play
so it's basically
/play [string]
and it plays the song.
I'm coming from discord, and CTX does not function the same as the Interaction, and I can not find a reference where a user has working slash commands play music for Nextcord. It seems every other post runs into the same issue, and no one answers.
` @nextcord.slash_command(name="play_test", description="Plays a song by URL",
guild_ids=[guild_id])
async def play_test(self, interaction: nextcord.Interaction, search: str):
Beta Was this translation helpful? Give feedback.
All reactions