[Fix] SocketGuild.GetApplicationCommandAsync was fetching global commands (#3073)

This commit is contained in:
Mihail Gribkov
2025-03-02 01:03:14 +03:00
committed by GitHub
parent d71fcb1a42
commit aa66928c48

View File

@@ -1024,7 +1024,7 @@ namespace Discord.WebSocket
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;