mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
fix(SoundboardSound): wrong emoji comparison in equals (#10861)
This commit is contained in:
@@ -487,7 +487,6 @@ class GuildAuditLogsEntry {
|
|||||||
AuditLogEvent.ThreadUpdate,
|
AuditLogEvent.ThreadUpdate,
|
||||||
AuditLogEvent.SoundboardSoundUpdate,
|
AuditLogEvent.SoundboardSoundUpdate,
|
||||||
AuditLogEvent.ApplicationCommandPermissionUpdate,
|
AuditLogEvent.ApplicationCommandPermissionUpdate,
|
||||||
AuditLogEvent.SoundboardSoundUpdate,
|
|
||||||
AuditLogEvent.AutoModerationRuleUpdate,
|
AuditLogEvent.AutoModerationRuleUpdate,
|
||||||
AuditLogEvent.AutoModerationBlockMessage,
|
AuditLogEvent.AutoModerationBlockMessage,
|
||||||
AuditLogEvent.AutoModerationFlagToChannel,
|
AuditLogEvent.AutoModerationFlagToChannel,
|
||||||
|
|||||||
@@ -181,8 +181,8 @@ class SoundboardSound extends Base {
|
|||||||
this.available === other.available &&
|
this.available === other.available &&
|
||||||
this.name === other.name &&
|
this.name === other.name &&
|
||||||
this.volume === other.volume &&
|
this.volume === other.volume &&
|
||||||
this.emojiId === other.emojiId &&
|
this._emoji?.id === other._emoji?.id &&
|
||||||
this.emojiName === other.emojiName &&
|
this._emoji?.name === other._emoji?.name &&
|
||||||
this.guildId === other.guildId &&
|
this.guildId === other.guildId &&
|
||||||
this.user?.id === other.user?.id
|
this.user?.id === other.user?.id
|
||||||
);
|
);
|
||||||
@@ -193,8 +193,8 @@ class SoundboardSound extends Base {
|
|||||||
this.available === other.available &&
|
this.available === other.available &&
|
||||||
this.name === other.name &&
|
this.name === other.name &&
|
||||||
this.volume === other.volume &&
|
this.volume === other.volume &&
|
||||||
this.emojiId === other.emoji_id &&
|
(this._emoji?.id ?? null) === other.emoji_id &&
|
||||||
this.emojiName === other.emoji_name &&
|
(this._emoji?.name ?? null) === other.emoji_name &&
|
||||||
this.guildId === other.guild_id &&
|
this.guildId === other.guild_id &&
|
||||||
this.user?.id === other.user?.id
|
this.user?.id === other.user?.id
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user