Skip to content

Commit 45bf97f

Browse files
authored
Adjust user input to title cased when looking up name (#1651)
1 parent 6b12cbd commit 45bf97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot/exts/utilities/colour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ async def hex(self, ctx: commands.Context, hex_code: str) -> None:
163163
@colour.command()
164164
async def name(self, ctx: commands.Context, *, user_colour_name: str) -> None:
165165
"""Create an embed from a name input."""
166-
hex_colour = self.match_colour_name(ctx, user_colour_name)
166+
hex_colour = self.match_colour_name(ctx, user_colour_name.title())
167167
if hex_colour is None:
168168
name_error_embed = discord.Embed(
169169
title="No colour match found.",

0 commit comments

Comments
 (0)