Skip to content

Commit

Permalink
Feature branch: Version 3.17 (#56)
Browse files Browse the repository at this point in the history
* chore: bump version

* fix: queued suggestions resolved_at being set when popped back into queue on error

* chore: add logging for when a suggestion message is sent
  • Loading branch information
Skelmis authored Jul 30, 2023
1 parent 5b0af24 commit 9e23beb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suggestions/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

class SuggestionsBot(commands.AutoShardedInteractionBot, BotBase):
def __init__(self, *args, **kwargs):
self.version: str = "Public Release 3.16"
self.version: str = "Public Release 3.17"
self.main_guild_id: int = 601219766258106399
self.legacy_beta_role_id: int = 995588041991274547
self.automated_beta_role_id: int = 998173237282361425
Expand Down
2 changes: 1 addition & 1 deletion suggestions/cogs/suggestion_queue_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def approve_button(self, inter: disnake.MessageInteraction, *, pid: str):
except:
# Throw it back in the queue on error
current_suggestion.resolved_by = None
current_suggestion.resolved_at = self.bot.state.now
current_suggestion.resolved_at = None
current_suggestion.still_in_queue = True
await self.bot.state.queued_suggestions_db.update(
current_suggestion, current_suggestion
Expand Down
1 change: 1 addition & 0 deletions suggestions/objects/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ async def setup_initial_messages(
),
],
)
log.debug("Sent suggestion %s to channel", self.suggestion_id)
except disnake.Forbidden as e:
state.remove_sid_from_cache(interaction.guild_id, self.suggestion_id)
await state.suggestions_db.delete(self.as_filter())
Expand Down

0 comments on commit 9e23beb

Please sign in to comment.