Update ChatAliases.plugin.js
This commit is contained in:
parent
7005fb07e3
commit
d8b56460cc
|
@ -2,7 +2,7 @@
|
||||||
* @name ChatAliases
|
* @name ChatAliases
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.3.7
|
* @version 2.3.8
|
||||||
* @description Allows you to configure your own Aliases/Commands
|
* @description Allows you to configure your own Aliases/Commands
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ChatAliases",
|
"name": "ChatAliases",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.3.7",
|
"version": "2.3.8",
|
||||||
"description": "Allows you to configure your own Aliases/Commands"
|
"description": "Allows you to configure your own Aliases/Commands"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"fixed": {
|
"fixed": {
|
||||||
"Autocomplete": "Works again"
|
"Attachments": "No longer uploads Attachments to every Message Draft of all Channels in a Server"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -397,6 +397,7 @@ module.exports = (_ => {
|
||||||
let messageData = this.formatText(e2.methodArguments[0].value);
|
let messageData = this.formatText(e2.methodArguments[0].value);
|
||||||
if (messageData) {
|
if (messageData) {
|
||||||
if (messageData.files.length > 0 && (BDFDB.DMUtils.isDMChannel(e.instance.props.channel.id) || BDFDB.UserUtils.can("ATTACH_FILES"))) {
|
if (messageData.files.length > 0 && (BDFDB.DMUtils.isDMChannel(e.instance.props.channel.id) || BDFDB.UserUtils.can("ATTACH_FILES"))) {
|
||||||
|
e2.methodArguments[0].uploads = [].concat(e2.methodArguments[0].uploads);
|
||||||
for (let file of messageData.files) e2.methodArguments[0].uploads.push(new BDFDB.DiscordObjects.Upload({file: file, platform: 1}));
|
for (let file of messageData.files) e2.methodArguments[0].uploads.push(new BDFDB.DiscordObjects.Upload({file: file, platform: 1}));
|
||||||
}
|
}
|
||||||
if (messageData.text != null && e2.methodArguments[0].value != messageData.text) {
|
if (messageData.text != null && e2.methodArguments[0].value != messageData.text) {
|
||||||
|
|
Loading…
Reference in New Issue