changes to wryna commands
This commit is contained in:
@ -19,7 +19,7 @@ export class UserCommand extends Command {
|
|||||||
|
|
||||||
// Message command
|
// Message command
|
||||||
public async messageRun(message: Message, args: Args) {
|
public async messageRun(message: Message, args: Args) {
|
||||||
return this.sendPing(message, args.getOption('nickname') || 'NOTHING');
|
return this.sendPing(message, args.getOption('nickname') || message.content.split('!wryna ')[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chat Input (slash) command
|
// Chat Input (slash) command
|
||||||
@ -32,9 +32,11 @@ export class UserCommand extends Command {
|
|||||||
nickname: string
|
nickname: string
|
||||||
) {
|
) {
|
||||||
interactionOrMessage instanceof Message
|
interactionOrMessage instanceof Message
|
||||||
? await interactionOrMessage.channel.send({ content: `${nickname} was ${interactionOrMessage.author.tag}'s nickname in highschool!` })
|
? await interactionOrMessage.channel.send({
|
||||||
|
content: `${nickname} was ${interactionOrMessage.author.username}'s nickname in highschool!`
|
||||||
|
})
|
||||||
: await interactionOrMessage.reply({
|
: await interactionOrMessage.reply({
|
||||||
content: `${nickname} was ${interactionOrMessage.user.tag}'s nickname in highschool!`,
|
content: `${nickname} was ${interactionOrMessage.user.username}'s nickname in highschool!`,
|
||||||
fetchReply: true
|
fetchReply: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user