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
// Check if the channel is already being tracked in the guild
345
-
if(
346
+
consttrackedChannels=
346
347
awaitcheckIfGuildIsTrackingChannelAlready(
347
348
platformUserId,
348
349
guildId,
349
-
)
350
-
){
350
+
);
351
+
352
+
// Check if the channel is already being tracked in the guild
353
+
if(trackedChannels.length){
351
354
awaitinteraction.reply({
352
355
flags: MessageFlags.Ephemeral,
353
-
content: "This channel is already being tracked!",
356
+
content: `This channel is already being tracked in ${trackedChannels.map((channel,index)=>`${index>0&&index===trackedChannels.length-1 ? "and " : ""}<#${channel.guild_channel_id}>`).join(", ")}!`,
// Check if the channel is already being tracked in the guild
414
-
if(
415
-
awaittwitchCheckIfGuildIsTrackingChannelAlready(
416
-
streamerId,
417
+
consttrackedChannels=
418
+
awaitcheckIfGuildIsTrackingChannelAlready(
419
+
platformUserId,
417
420
guildId,
418
-
)
419
-
){
421
+
);
422
+
423
+
// Check if the channel is already being tracked in the guild
424
+
if(trackedChannels.length){
420
425
awaitinteraction.reply({
421
426
flags: MessageFlags.Ephemeral,
422
-
content: "This streamer is already being tracked!",
427
+
content: `This channel is already being tracked in ${trackedChannels.map((channel,index)=>`${index>0&&index===trackedChannels.length-1 ? "and " : ""}<#${channel.guild_channel_id}>`).join(", ")}!`,
0 commit comments