Skip to content

Commit

Permalink
Merge pull request #146 from KubaZ2/simplify-sample
Browse files Browse the repository at this point in the history
Simplify the usage of `SlashCommandParameterAttribute` in NetCord's sample
  • Loading branch information
angelobreuer authored Mar 6, 2024
2 parents d5c2c98 + 5169d80 commit 5c92914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/Lavalink4NET.Samples.NetCord/MusicModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class MusicModule(IAudioService audioService) : ApplicationCommandModule<SlashCommandContext>
{
[SlashCommand("play", "Plays a track!")]
public async Task<string> PlayAsync([SlashCommandParameter(Name = "query", Description = "The query to search for")] string query)
public async Task<string> PlayAsync([SlashCommandParameter(Description = "The query to search for")] string query)
{
var retrieveOptions = new PlayerRetrieveOptions(ChannelBehavior: PlayerChannelBehavior.Join);

Expand Down

0 comments on commit 5c92914

Please sign in to comment.