stuff
This commit is contained in:
parent
ff7cb4b9f3
commit
bfff9694cf
|
@ -3309,8 +3309,8 @@ module.exports = (_ => {
|
|||
if (channels.length) BDFDB.ChannelUtils.markAsRead(channels);
|
||||
let eventChannels = guildIds.map(id => ({
|
||||
channelId: id,
|
||||
readStateType: Internal.LibraryModules.UnreadStateTypes.GUILD_EVENT,
|
||||
messageId: Internal.LibraryStores.ReadStateStore.lastMessageId(id, Internal.LibraryModules.UnreadStateTypes.GUILD_EVENT)
|
||||
readStateType: Internal.DiscordConstants.ReadStateTypes.GUILD_EVENT,
|
||||
messageId: Internal.LibraryStores.ReadStateStore.lastMessageId(id, Internal.DiscordConstants.ReadStateTypes.GUILD_EVENT)
|
||||
})).filter(n => n.messageId);
|
||||
if (eventChannels.length) Internal.LibraryModules.AckUtils.bulkAck(eventChannels);
|
||||
};
|
||||
|
@ -3362,7 +3362,7 @@ module.exports = (_ => {
|
|||
BDFDB.ChannelUtils.markAsRead = function (channelIds) {
|
||||
let unreadChannels = [channelIds].flat(10).filter(id => id && typeof id == "string" && (BDFDB.LibraryStores.ChannelStore.getChannel(id) || {}).type != Internal.DiscordConstants.ChannelTypes.GUILD_CATEGORY && (Internal.LibraryStores.ReadStateStore.hasUnread(id) || Internal.LibraryStores.ReadStateStore.getMentionCount(id) > 0)).map(id => ({
|
||||
channelId: id,
|
||||
readStateType: Internal.LibraryModules.UnreadStateTypes.CHANNEL,
|
||||
readStateType: Internal.DiscordConstants.ReadStateTypes.CHANNEL,
|
||||
messageId: Internal.LibraryStores.ReadStateStore.lastMessageId(id)
|
||||
}));
|
||||
if (unreadChannels.length) Internal.LibraryModules.AckUtils.bulkAck(unreadChannels);
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
"MessageTypeGroups": ["USER_MESSAGE", "DELETABLE"],
|
||||
"MessageTypes": ["CHAT_INPUT_COMMAND", "CHANNEL_PINNED_MESSAGE"],
|
||||
"Permissions": ["ADMINISTRATOR", "MANAGE_MESSAGES", "MANAGE_ROLES", "MANAGE_GUILD_EXPRESSIONS"],
|
||||
"ReadStateTypes": ["GUILD_EVENT", "NOTIFICATION_CENTER", "CHANNEL"],
|
||||
"RelationshipTypes": ["FRIEND", "PENDING_INCOMING", "PENDING_OUTGOING"],
|
||||
"Routes": ["CHANNEL_THREAD_VIEW", "MESSAGE_REQUESTS"],
|
||||
"StatusTypes": ["STREAMING", "UNKNOWN", "DND"],
|
||||
|
@ -151,7 +152,6 @@
|
|||
"StoreChangeUtils": {"props": ["get", "set", "clear", "remove"]},
|
||||
"TimestampUtils": {"props": ["fromTimestamp", "extractTimestamp"]},
|
||||
"TimeUtils": {"props": ["calendarFormat", "dateFormat"]},
|
||||
"UnreadStateTypes": {"props": ["ReadStateTypes"], "value": "ReadStateTypes"},
|
||||
"UploadUtils": {"props": ["upload", "instantBatchUpload"]},
|
||||
"URLParser": {"props": ["parse", "resolveObject"]},
|
||||
"UserBioParser": {"props": ["parseBioReact"]},
|
||||
|
|
Loading…
Reference in New Issue