Skip to content

Commit

Permalink
[Fix] SocketGuild.GetApplicationCommandAsync was fetching global comm…
Browse files Browse the repository at this point in the history
…ands (#3073)
  • Loading branch information
Misha-133 authored Mar 1, 2025
1 parent d71fcb1 commit aa66928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.WebSocket/Entities/Guilds/SocketGuild.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ public async ValueTask<SocketApplicationCommand> GetApplicationCommandAsync(ulon
if (mode == CacheMode.CacheOnly)
return null;

var model = await Discord.ApiClient.GetGlobalApplicationCommandAsync(id, options);
var model = await Discord.ApiClient.GetGuildApplicationCommandAsync(Id, id, options);

if (model == null)
return null;
Expand Down

0 comments on commit aa66928

Please sign in to comment.