feat(guild): require opt-in for emoji and sticker cloning (#2712)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-12 00:33:23 +02:00
1 parent 7b15e5be0f
commit 3affd295e8
63 files changed
+4189 -1752

No files matched your search

@@ -259,7 +259,7 @@ export class GuildService {
guild_id: guild.id.toString(),
name: emoji.name,
animated: emoji.isAnimated,
allow_cloning: !guild.features.has(GuildFeatures.CLONE_EMOJI_DISABLED),
allow_cloning: guild.features.has(GuildFeatures.CLONE_EMOJI_ENABLED),
};
}
@@ -272,7 +272,7 @@ export class GuildService {
guild_id: guild.id.toString(),
name: sticker.name,
animated: sticker.animated,
allow_cloning: !guild.features.has(GuildFeatures.CLONE_STICKER_DISABLED),
allow_cloning: guild.features.has(GuildFeatures.CLONE_STICKER_ENABLED),
};
}