Skip to content

Commit

Permalink
Suggest vc only when game is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
lexicalunit committed Jan 2, 2025
1 parent 50d23bb commit ad5c301
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Only suggest a vc if the game has started.

## [v14.4.0](https://github.com/lexicalunit/spellbot/releases/tag/v14.4.0) - 2025-01-01

### Added
Expand Down
1 change: 1 addition & 0 deletions src/spellbot/models/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def to_embed(self, guild: discord.Guild | None = None, dm: bool = False) -> disc
and not self.voice_invite_link
and self.guild.suggest_voice_channel
and guild is not None
and self.started_at is not None
):
suggest_vc = safe_suggest_voice_channel(guild, [p.xid for p in self.players])

Expand Down

0 comments on commit ad5c301

Please sign in to comment.