mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[CustomCom] [p]cc show - Handle missing cooldowns (#4112)
The old dataconverter didn't add cooldowns by default and `[p]cc show` expects them to be present
This commit is contained in:
parent
7458eefa01
commit
6c68aa9dcd
@ -490,7 +490,7 @@ class CustomCommands(commands.Cog):
|
|||||||
command_name=command_name, author=author, created_at=cmd["created_at"], type=_type
|
command_name=command_name, author=author, created_at=cmd["created_at"], type=_type
|
||||||
)
|
)
|
||||||
|
|
||||||
cooldowns = cmd["cooldowns"]
|
cooldowns = cmd.get("cooldowns", {})
|
||||||
|
|
||||||
if cooldowns:
|
if cooldowns:
|
||||||
cooldown_text = _("Cooldowns:\n")
|
cooldown_text = _("Cooldowns:\n")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user