This commit is contained in:
Atridad Lahiji 2023-06-05 22:29:03 -06:00
parent 298f4240e2
commit 3e8886256a
No known key found for this signature in database

View file

@ -17,15 +17,15 @@ export class UserCommand extends Command {
// Message command
public async messageRun(message: Message) {
return this.sendPing(message);
return this.sendBorf(message);
}
// Chat Input (slash) command
public async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
return this.sendPing(interaction);
return this.sendBorf(interaction);
}
private async sendPing(interactionOrMessage: Message | Command.ChatInputCommandInteraction | Command.ContextMenuCommandInteraction) {
private async sendBorf(interactionOrMessage: Message | Command.ChatInputCommandInteraction | Command.ContextMenuCommandInteraction) {
const dogResponse = await fetch('https://dog.ceo/api/breeds/image/random');
const dogData = await dogResponse.json();
console.log(dogData);