This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08662c0
commit f1d5477
Showing
2 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { SlashCommandBuilder } from "@discordjs/builders"; | ||
import { CommandInteraction } from "discord.js"; | ||
import version from "../version.json"; | ||
import versionFile from "../version.json"; | ||
import { Command } from "./command"; | ||
|
||
export const avc: Command = { | ||
export const version: Command = { | ||
data: new SlashCommandBuilder() | ||
.setName("version") | ||
.setDescription("The version of the bot in use."), | ||
async execute(interaction: CommandInteraction) { | ||
interaction.reply({ | ||
content: `The version of the bot is \`${version.version}\`.`, | ||
content: `The version of the bot is \`${versionFile.version}\`.`, | ||
}); | ||
}, | ||
}; |