You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"That streamer doesn't exist! Please use the autocomplete to find the correct streamer ID as this uses IDs that are not publicly visible on the Twitch site!",
// Check if the channel is already being tracked in the guild
573
575
consttrackedChannels=
574
576
awaitcheckIfGuildIsTrackingUserAlready(
577
+
Platform.YouTube,
575
578
platformUserId,
576
579
guildId,
577
580
);
578
581
579
-
if(trackedChannels.length){
582
+
console.log(trackedChannels);
583
+
if(!trackedChannels||!trackedChannels.success){
584
+
// TODO: Embed
585
+
awaitinteraction.reply({
586
+
flags: MessageFlags.Ephemeral,
587
+
content: `An error occurred while trying to check if the channel is already being tracked in this guild! Please report this error!`,
588
+
});
589
+
590
+
return;
591
+
}elseif(
592
+
trackedChannels.success&&
593
+
trackedChannels.data
594
+
){
595
+
// If the channel is already being tracked in the guild, we can just return
580
596
awaitinteraction.reply({
581
597
flags: MessageFlags.Ephemeral,
582
-
content: `This channel is already being tracked in ${trackedChannels.map((channel,index)=>`${index>0&&index===trackedChannels.length-1 ? "and " : ""}<#${channel.guild_channel_id}>`).join(", ")}!`,
598
+
content: `This channel is already being tracked in ${trackedChannels.data.map((channel,index)=>`${index>0&&index===trackedChannels.data.length-1 ? "and " : ""}<#${channel.guild_channel_id}>`).join(", ")}!`,
0 commit comments