Skip to content

Commit

Permalink
Edited get slash commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Shell1010 committed Jan 22, 2024
1 parent 5d98397 commit a0b745c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfcord/models/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ async def get_slash_commands(self, name: Optional[str] = None) -> Optional[Slash
cmds.append(SlashCommand(cmd, self.bot))
if name is not None:
for cmd in cmds:
if cmd.name == name:
if cmd.name.lower() == name.lower():
return cmd
return cmds

Expand Down

0 comments on commit a0b745c

Please sign in to comment.