Skip to content

Commit

Permalink
bugfix: fix 'setSlashCommandsAsync'
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed Jun 22, 2024
1 parent defc604 commit b6dd705
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Package/Classes/Objects/DiscordGuild.luau
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ function DiscordGuild.Prototype.setSlashCommandsAsync(self: DiscordGuild, comman

return self.discordClient.discordGateway
:putAsync(
string.format(DiscordEndpoints.OverwriteGuildApplicationCommands, self.id),
string.format(
DiscordEndpoints.OverwriteGuildApplicationCommands,
self.discordClient.discordApplication.id,
self.id
),
Resolvable.new(ResolvableType.JSON, commandObjects)
)
:await()
Expand Down

0 comments on commit b6dd705

Please sign in to comment.