diff options
| author | William Hergès <william@herges.fr> | 2025-09-20 13:40:41 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-20 13:40:41 +0200 |
| commit | e8b91140fba414c2bd7e7f36e8cff95d7651732d (patch) | |
| tree | d5b60f21edb16cffd48488c36f6196f482b12095 /main.go | |
| parent | 398213f2088b775787d4c022b5704366fdfe1aa9 (diff) | |
fix(db): closing rows even if rows is nil
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -68,11 +68,11 @@ func init() { func handleDynamicMessageComponent( b *gokord.Bot, handler func( - *discordgo.Session, - *discordgo.InteractionCreate, - *interaction.MessageComponentData, - []string, *cmd.ResponseBuilder, -), + *discordgo.Session, + *discordgo.InteractionCreate, + *interaction.MessageComponentData, + []string, *cmd.ResponseBuilder, + ), pattern string, ) { compiledPattern := regexp.MustCompile(pattern) @@ -94,12 +94,12 @@ func handleDynamicMessageComponent( func handleDynamicModalComponent( b *gokord.Bot, handler func( - *discordgo.Session, - *discordgo.InteractionCreate, - *interaction.ModalSubmitData, - []string, - *cmd.ResponseBuilder, -), + *discordgo.Session, + *discordgo.InteractionCreate, + *interaction.ModalSubmitData, + []string, + *cmd.ResponseBuilder, + ), pattern string, ) { compiledPattern := regexp.MustCompile(pattern) |
