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
347
-
if(
346
+
consttrackedChannels=
348
347
awaitcheckIfGuildIsTrackingChannelAlready(
349
348
platformUserId,
350
349
guildId,
351
-
)
352
-
){
350
+
);
351
+
352
+
// Check if the channel is already being tracked in the guild
353
+
if(trackedChannels.length){
353
354
awaitinteraction.reply({
354
355
flags: MessageFlags.Ephemeral,
355
-
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
416
-
if(
417
-
awaittwitchCheckIfGuildIsTrackingChannelAlready(
418
-
streamerId,
416
+
consttrackedChannels=
417
+
awaitcheckIfGuildIsTrackingChannelAlready(
418
+
platformUserId,
419
419
guildId,
420
-
)
421
-
){
420
+
);
421
+
422
+
// Check if the channel is already being tracked in the guild
423
+
if(trackedChannels.length){
422
424
awaitinteraction.reply({
423
425
flags: MessageFlags.Ephemeral,
424
-
content: "This streamer is already being tracked!",
426
+
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