DIspatch Fix
This commit is contained in:
parent
48ae0dfe61
commit
a4d379aba9
|
@ -45,7 +45,7 @@
|
|||
"DirectMessageStore": {"props": ["getPrivateChannelIds"]},
|
||||
"DirectMessageUnreadStore": {"props": ["getUnreadPrivateChannelIds"]},
|
||||
"DirectMessageUtils": {"props": ["addRecipient", "openPrivateChannel"]},
|
||||
"DispatchApiUtils": {"props": ["dirtyDispatch", "isDispatching"]},
|
||||
"DispatchApiUtils": {"props": ["dispatch", "isDispatching"]},
|
||||
"DispatchUtils": {"props": ["ComponentDispatch"]},
|
||||
"EmojiUtils": {"props": ["translateInlineEmojiToSurrogates", "translateSurrogatesToInlineEmoji"]},
|
||||
"EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]},
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name LastMessageDate
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.2.9
|
||||
* @version 1.3.0
|
||||
* @description Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "LastMessageDate",
|
||||
"author": "DevilBro",
|
||||
"version": "1.2.9",
|
||||
"version": "1.3.0",
|
||||
"description": "Displays the Last Message Date of a Member for the current Server/DM in the UserPopout and UserModal"
|
||||
}
|
||||
};
|
||||
|
@ -95,7 +95,7 @@ module.exports = (_ => {
|
|||
}
|
||||
|
||||
onStart () {
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.DispatchApiUtils, "dirtyDispatch", {after: e => {
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.DispatchApiUtils, "dispatch", {after: e => {
|
||||
if (BDFDB.ObjectUtils.is(e.methodArguments[0]) && e.methodArguments[0].type == "MESSAGE_CREATE" && e.methodArguments[0].message) {
|
||||
let message = e.methodArguments[0].message;
|
||||
let guildId = message.guild_id || message.channel_id;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name NotificationSounds
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 3.7.1
|
||||
* @version 3.7.2
|
||||
* @description Allows you to replace the native Sounds with custom Sounds
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,7 +17,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "NotificationSounds",
|
||||
"author": "DevilBro",
|
||||
"version": "3.7.1",
|
||||
"version": "3.7.2",
|
||||
"description": "Allows you to replace the native Sounds with custom Sounds"
|
||||
}
|
||||
};
|
||||
|
@ -221,7 +221,7 @@ module.exports = (_ => {
|
|||
change();
|
||||
}
|
||||
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.DispatchApiUtils, "dirtyDispatch", {before: e => {
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.DispatchApiUtils, "dispatch", {before: e => {
|
||||
if (BDFDB.ObjectUtils.is(e.methodArguments[0]) && e.methodArguments[0].type == "MESSAGE_CREATE" && e.methodArguments[0].message) {
|
||||
const message = e.methodArguments[0].message;
|
||||
const guildId = message.guild_id || null;
|
||||
|
|
Loading…
Reference in New Issue