@@ -22,7 +22,6 @@ import {
2222 twitchAddNewChannelToTrack ,
2323 twitchAddNewGuildToTrackChannel ,
2424 twitchCheckIfChannelIsAlreadyTracked ,
25- twitchCheckIfGuildIsTrackingChannelAlready ,
2625 twitchStopGuildTrackingChannel ,
2726} from "./utils/database" ;
2827import getChannelDetails from "./utils/youtube/getChannelDetails" ;
@@ -133,7 +132,8 @@ const commands: Record<string, Command> = {
133132 data : {
134133 options : [ ] ,
135134 name : "usage" ,
136- description : "Check the heap size and disk usage of the bot!" ,
135+ description :
136+ "Check the heap size and disk usage of the bot! (Stats for nerds)" ,
137137 integration_types : [ 0 , 1 ] ,
138138 contexts : [ 0 , 1 , 2 ] ,
139139 } ,
@@ -318,7 +318,7 @@ const commands: Record<string, Command> = {
318318 }
319319
320320 switch ( targetPlatform ) {
321- case "youtube" :
321+ case "youtube" : {
322322 // Check that the channel ID is in a valid format
323323 if (
324324 platformUserId . length != 24 ||
@@ -400,6 +400,7 @@ const commands: Record<string, Command> = {
400400 }
401401
402402 return ;
403+ }
403404 case "twitch" : {
404405 // Check if the streamer exists by getting the ID
405406 const streamerId = await getStreamerId ( platformUserId ) ;
@@ -626,7 +627,7 @@ const commands: Record<string, Command> = {
626627
627628 // check if the channel is not being tracked in the guild
628629 if (
629- ! ( await twitchCheckIfGuildIsTrackingChannelAlready (
630+ ! ( await checkIfGuildIsTrackingChannelAlready (
630631 streamerId ,
631632 guildId ,
632633 ) )
0 commit comments