Skip to content

Commit 9a8c15b

Browse files
Fix issue where if the args weren't an user that it would get the first part of the message instead of full args.
1 parent f24c986 commit 9a8c15b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/cmds/Fun/explode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
aliases: [],
1010
syntax: [],
1111
execute: async(app, message, args) => {
12-
var target = message.mentions.users.first() || args[0],
12+
var target = message.mentions.users.first() || args.slice(0).join(" "),
1313
sender = message.author;
1414
if (!target) return app.functions.msgHandler(message, { content: "You need to add something to explode!!" }, 0, true);
1515
else if (target == sender) return app.functions.msgHandler(message, { content: "Why would you want to send a bomb to yourself???" }, 0, true);

0 commit comments

Comments
 (0)