117
rated 0 times
[
118]
[
1]
/ answers: 1 / hits: 21195
/ 6 Years ago, wed, december 26, 2018, 12:00:00
I want to mention the user that sent the command. I know my code style is weird, but I like the JavaScript like functions.
So this is what I've tried, it mentions the user using the arguments sent.
So for example, if you did !mention <user_id>
it would mention the user. I want to auto-detect this from the user sent.
function pingFunction(arguments, receivedMessage) {
if (arguments > 0) {
receivedMessage.channel.send(<@ + arguments + >);
} else {
receivedMessage.channel.send(<@ + arguments + >);
}
}
Thanks in advance!
More From » discord.js