Skip to content

Commit

Permalink
Fix edit_application_command for global commands
Browse files Browse the repository at this point in the history
Thanks #253!
  • Loading branch information
wouterdedroog committed Mar 18, 2024
1 parent edad88d commit 88b36ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/discordrb/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ def edit_application_command(command_id, server_id: nil, name: nil, description:
resp = if server_id
API::Application.edit_guild_command(@token, profile.id, server_id, command_id, name, description, builder.to_a, default_permission, type)
else
API::Application.edit_guild_command(@token, profile.id, command_id, name, description, builder.to_a, default_permission.type)
API::Application.edit_global_command(@token, profile.id, command_id, name, description, builder.to_a, default_permission, type)
end
cmd = ApplicationCommand.new(JSON.parse(resp), self, server_id)

Expand Down

0 comments on commit 88b36ee

Please sign in to comment.