mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Ensure filenames are lowercase when uploading with [p]triviaset custom (#4594)
* added .lower() to when user uploads trivia filename * Update PR to use casefold() not lower() Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com> Co-authored-by: zephyrkul <zephyrkul@users.noreply.github.com>
This commit is contained in:
parent
1747d901d1
commit
866728371b
@ -625,7 +625,7 @@ class Trivia(commands.Cog):
|
||||
-------
|
||||
None
|
||||
"""
|
||||
filename = attachment.filename.rsplit(".", 1)[0]
|
||||
filename = attachment.filename.rsplit(".", 1)[0].casefold()
|
||||
|
||||
# Check if trivia filename exists in core files or if it is a command
|
||||
if filename in self.trivia.all_commands or any(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user