@@ -18,7 +18,6 @@ import {
1818 TextChannel ,
1919 type ApplicationCommandOptionData ,
2020 type CacheType ,
21- type CommandInteraction ,
2221} from "discord.js" ;
2322import { PermissionFlagsBits } from "discord-api-types/v8" ;
2423import hfksdjfskfhsjdfhkasfdhksf from "hfksdjfskfhsjdfhkasfdhksf" ;
@@ -83,7 +82,7 @@ const commands: Record<string, Command> = {
8382 integration_types : [ 0 , 1 ] ,
8483 contexts : [ 0 , 1 , 2 ] ,
8584 } ,
86- execute : async ( interaction : CommandInteraction ) => {
85+ execute : async ( interaction ) => {
8786 await interaction
8887 . reply ( {
8988 flags : MessageFlags . Ephemeral ,
@@ -100,7 +99,7 @@ const commands: Record<string, Command> = {
10099 integration_types : [ 0 , 1 ] ,
101100 contexts : [ 0 , 1 , 2 ] ,
102101 } ,
103- execute : async ( interaction : CommandInteraction ) => {
102+ execute : async ( interaction ) => {
104103 await client . application ?. commands ?. fetch ( ) . catch ( console . error ) ;
105104 const chat_commands = client . application ?. commands . cache . map (
106105 ( a ) => {
@@ -124,7 +123,7 @@ const commands: Record<string, Command> = {
124123 integration_types : [ 0 , 1 ] ,
125124 contexts : [ 0 , 1 , 2 ] ,
126125 } ,
127- execute : async ( interaction : CommandInteraction ) => {
126+ execute : async ( interaction ) => {
128127 await interaction
129128 . reply ( {
130129 flags : MessageFlags . Ephemeral ,
@@ -141,7 +140,7 @@ const commands: Record<string, Command> = {
141140 integration_types : [ 0 , 1 ] ,
142141 contexts : [ 0 , 1 , 2 ] ,
143142 } ,
144- execute : async ( interaction : CommandInteraction ) => {
143+ execute : async ( interaction ) => {
145144 await interaction
146145 . reply ( {
147146 flags : MessageFlags . Ephemeral ,
@@ -161,7 +160,7 @@ const commands: Record<string, Command> = {
161160 integration_types : [ 0 , 1 ] ,
162161 contexts : [ 0 , 1 , 2 ] ,
163162 } ,
164- execute : async ( interaction : CommandInteraction ) => {
163+ execute : async ( interaction ) => {
165164 await interaction . reply ( {
166165 flags : MessageFlags . Ephemeral ,
167166 content : hfksdjfskfhsjdfhkasfdhksf ( ) ,
@@ -177,7 +176,7 @@ const commands: Record<string, Command> = {
177176 integration_types : [ 0 , 1 ] ,
178177 contexts : [ 0 , 1 , 2 ] ,
179178 } ,
180- execute : async ( interaction : CommandInteraction ) => {
179+ execute : async ( interaction ) => {
181180 const heap = heapStats ( ) ;
182181
183182 Bun . gc ( false ) ;
@@ -278,13 +277,11 @@ const commands: Record<string, Command> = {
278277 integration_types : [ 0 , 1 ] ,
279278 contexts : [ 0 , 1 ] ,
280279 } ,
281- execute : async ( interaction : CommandInteraction ) => {
280+ execute : async ( interaction ) => {
282281 const isDm = ! interaction . inGuild ( ) ;
283282
284283 // Get the YouTube Channel ID
285- const targetPlatform = (
286- interaction as ChatInputCommandInteraction
287- ) . options . getSubcommand ( ) ;
284+ const targetPlatform = interaction . options . getSubcommand ( ) ;
288285 const platformUserId =
289286 targetPlatform === "youtube"
290287 ? ( interaction . options . get ( "channel_id" ) ?. value as string )
@@ -829,7 +826,7 @@ const commands: Record<string, Command> = {
829826 integration_types : [ 0 , 1 ] ,
830827 contexts : [ 0 , 1 ] ,
831828 } ,
832- execute : async ( interaction : CommandInteraction ) => {
829+ execute : async ( interaction ) => {
833830 const isDm = ! interaction . inGuild ( ) ;
834831
835832 // Get the YouTube Channel ID
@@ -917,7 +914,7 @@ const commands: Record<string, Command> = {
917914 integration_types : [ 0 , 1 ] ,
918915 contexts : [ 0 , 1 ] ,
919916 } ,
920- execute : async ( interaction : CommandInteraction ) => {
917+ execute : async ( interaction ) => {
921918 let guildId = interaction . guildId ;
922919
923920 const isDm = ! interaction . inGuild ( ) ;
@@ -1200,7 +1197,7 @@ const commands: Record<string, Command> = {
12001197 } ,
12011198 ] ,
12021199 } ,
1203- execute : async ( interaction : CommandInteraction ) => {
1200+ execute : async ( interaction ) => {
12041201 const isDm = ! interaction . inGuild ( ) ;
12051202
12061203 const channelId = interaction . channelId ;
0 commit comments