Skip to content

Commit

Permalink
Accept review suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Erisa A <[email protected]>
  • Loading branch information
FloatingMilkshake and Erisa authored Dec 15, 2024
1 parent a771ac2 commit ed62d30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Commands/InteractionCommands/TrackingInteractions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public async Task TrackingAddSlashCmd(InteractionContext ctx, [Option("member",
var channelIds = channels.Split(' ', ',');
foreach (var channel in channelIds)
{
// skip some common obviously-invalid entries
if (channel == "" || channel == " ")
continue;

// If this is a channel mention, get the ID first
var channelId = channel.Replace("<#", "").Replace(">", "");

Expand Down

0 comments on commit ed62d30

Please sign in to comment.