From e3b5542b78f63a84a14e58f1b17d7df3f0b34f89 Mon Sep 17 00:00:00 2001 From: William P Date: Sat, 7 Mar 2026 21:14:31 -0500 Subject: [PATCH] add /version command --- app/main.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/main.go b/app/main.go index 6b1225b..7e27aa6 100644 --- a/app/main.go +++ b/app/main.go @@ -53,6 +53,12 @@ func main() { }, }, }, + { + Name: "version", + Description: "Show application version", + DefaultMemberPermissions: &defaultMemberPermissions, + Contexts: &[]discordgo.InteractionContextType{interactionPrivateChannel}, + }, { Name: "download video", Type: discordgo.MessageApplicationCommand, @@ -679,6 +685,15 @@ func main() { } }() }, + "version": func(s *discordgo.Session, i *discordgo.InteractionCreate) { + s.InteractionRespond(i.Interaction, &discordgo.InteractionResponse{ + Type: discordgo.InteractionResponseChannelMessageWithSource, + Data: &discordgo.InteractionResponseData{ + Content: "[yt-dlp-bot](https://git.dubyatp.xyz/williamp/yt-dlp-bot) by dubyatp", + Flags: discordgo.MessageFlagsEphemeral, + }, + }) + }, } s.AddHandler(func(s *discordgo.Session, i *discordgo.InteractionCreate) {