Skip to content

Commit

Permalink
fix(Equals): fix dm_permission check for guild commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ckohen committed Jun 27, 2022
1 parent 3ce719e commit d13404b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export function commandEquals(existing: APIApplicationCommand, command: RESTPost
(command.type ?? ApplicationCommandType.ChatInput) !== existing.type ||
command.options?.length !== existing.options?.length ||
command.default_member_permissions !== existing.default_member_permissions ||
(command.dm_permission ?? true) !== existing.dm_permission ||
(existing.guild_id && (command.dm_permission ?? true) !== existing.dm_permission) ||
!isEqual(existing.name_localizations ?? {}, command.name_localizations ?? {}) ||
!isEqual(existing.description_localizations ?? {}, command.description_localizations ?? {})
) {
Expand Down

0 comments on commit d13404b

Please sign in to comment.