Skip to content

Commit e4ca152

Browse files
Merge pull request #587 from senchabot-opensource/dev
dev -> main
2 parents b0eb87a + b343b4e commit e4ca152

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/discord-bot/internal/command/command.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ func DeployCustomCommandsForGuild(s *discordgo.Session, ctx context.Context, ser
167167
return
168168
}
169169

170+
if len(commands) == 0 {
171+
return
172+
}
173+
170174
log.Printf("[DeployCustomCommandsForGuild] Deploying %d custom commands for guild %s\n", len(commands), guildID)
171175

172176
// Create slash commands for each custom command

0 commit comments

Comments
 (0)