mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(guild): require opt-in for emoji and sticker cloning (#2712)
This commit is contained in:
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),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user