mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -29,11 +29,11 @@ interface CrosspostSourceCounts {
|
||||
presenceCount: number;
|
||||
}
|
||||
|
||||
export function crosspostSourceCountsCacheKey(guildId: GuildID): string {
|
||||
function crosspostSourceCountsCacheKey(guildId: GuildID): string {
|
||||
return `crosspost-source:counts:${guildId.toString()}`;
|
||||
}
|
||||
|
||||
export function getCrosspostSourceGuildId(message: MessageResponse): GuildID | null {
|
||||
function getCrosspostSourceGuildId(message: MessageResponse): GuildID | null {
|
||||
const isCopy = (message.flags & MessageFlags.IS_CROSSPOST) !== 0;
|
||||
const isFollowNotice = message.type === MessageTypes.CHANNEL_FOLLOW_ADD;
|
||||
if (!isCopy && !isFollowNotice) {
|
||||
|
||||
Reference in new issue
Block a user