mirror of https://github.com/stijndcl/didier
Fix typing
parent
d4dae7826d
commit
c4c9461ca3
|
@ -105,7 +105,7 @@ class WordleEmbed(EmbedBaseModel):
|
|||
rows = [" ".join(row) for row in emojis]
|
||||
|
||||
# Don't reveal anything if we only want to show the colours
|
||||
if not only_colours:
|
||||
if not only_colours and self.game is not None:
|
||||
for i, guess in enumerate(self.game.guesses):
|
||||
rows[i] += f" ||{guess.upper()}||"
|
||||
|
||||
|
@ -126,7 +126,7 @@ class WordleErrorEmbed(EmbedBaseModel):
|
|||
message: str
|
||||
|
||||
@overrides
|
||||
def to_embed(self) -> discord.Embed:
|
||||
def to_embed(self, **kwargs: dict) -> discord.Embed:
|
||||
embed = discord.Embed(colour=discord.Colour.red(), title="Wordle")
|
||||
embed.description = self.message
|
||||
embed.set_footer(text=footer())
|
||||
|
|
|
@ -27,7 +27,7 @@ class Didier(commands.Bot):
|
|||
error_channel: discord.abc.Messageable
|
||||
initial_extensions: tuple[str, ...] = ()
|
||||
http_session: ClientSession
|
||||
wordle_words: set[str, ...] = set()
|
||||
wordle_words: set[str] = set()
|
||||
|
||||
def __init__(self):
|
||||
activity = discord.Activity(type=discord.ActivityType.playing, name=settings.DISCORD_STATUS_MESSAGE)
|
||||
|
|
Loading…
Reference in New Issue