Skip to content

Commit

Permalink
Oups
Browse files Browse the repository at this point in the history
  • Loading branch information
Aluerie committed Feb 14, 2025
1 parent ff644db commit 2f04b95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ def spam_webhook(self) -> discord.Webhook:
webhook_url = config["WEBHOOKS"]["SPAM"] if not self.test else config["WEBHOOKS"]["YEN_SPAM"]
return self.webhook_from_url(webhook_url)

async def send_warning(self, message: str) -> None:
async def send_warning(self, message: str, *, mention: bool = False) -> None:
"""Send a quick warning embed to @Aluerie's spam channel."""
content = const.Role.warning.mention
content = const.Role.warning.mention if mention else ""
embed = discord.Embed(color=discord.Color.yellow(), description=message)
await self.spam_webhook.send(content=content, embed=embed)

Expand Down
2 changes: 1 addition & 1 deletion ext/information/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def color(
e.set_thumbnail(url=f"attachment://{file.filename}")
await interaction.response.send_message(embed=e, file=file)

@color.autocomplete("colour")
@color.autocomplete("color")
async def autocomplete(self, _: discord.Interaction, current: str) -> list[app_commands.Choice[str]]:
colors = ["prpl", "rgb(", "hsl(", "hsv(", "mp(", "map(", *list(ImageColor.colormap.keys())]
return [
Expand Down

0 comments on commit 2f04b95

Please sign in to comment.