Update QuickMention.plugin.js

This commit is contained in:
Mirco Wittrien 2022-04-03 16:38:55 +02:00 committed by GitHub
parent 5c02584a20
commit 79bb502657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -2,7 +2,7 @@
* @name QuickMention
* @author DevilBro
* @authorId 278543574059057154
* @version 1.0.3
* @version 1.0.4
* @description Adds a Mention Button to the Message Options Bar
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "QuickMention",
"author": "DevilBro",
"version": "1.0.3",
"version": "1.0.4",
"description": "Adds a Mention Button to the Message Options Bar"
}
};
@ -74,11 +74,9 @@ module.exports = (_ => {
text: BDFDB.LanguageUtils.LanguageStrings.MENTION,
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Clickable, {
className: BDFDB.disCN.messagetoolbarbutton,
onClick: _ => {
BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {
content: `<@!${e.instance.props.message.author.id}>`
});
},
onClick: _ => BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {
plainText: `<@!${e.instance.props.message.author.id}>`
}),
children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.SvgIcon, {
className: BDFDB.disCN.messagetoolbaricon,
name: BDFDB.LibraryComponents.SvgIcon.Names.NOVA_AT