mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Replace all sendMessage calls with send
This commit is contained in:
@@ -26,11 +26,11 @@ class RandomNameGen extends commando.Command {
|
||||
let randomfirstboth = [randomfirstmale, randomfirstfemale]
|
||||
randomfirstboth = randomfirstboth[Math.floor(Math.random() * randomfirstboth.length)];
|
||||
if(message.content.toLowerCase().split(" ").slice(1).includes("male")) {
|
||||
message.channel.sendMessage(randomfirstmale + " " + randomlast);
|
||||
message.channel.send(randomfirstmale + " " + randomlast);
|
||||
} else if(message.content.toLowerCase().split(" ").slice(1).includes("female")) {
|
||||
message.channel.sendMessage(randomfirstfemale + " " + randomlast);
|
||||
message.channel.send(randomfirstfemale + " " + randomlast);
|
||||
} else {
|
||||
message.channel.sendMessage(randomfirstboth + " " + randomlast);
|
||||
message.channel.send(randomfirstboth + " " + randomlast);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user