Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
fixed KeyError '!globals'
Browse files Browse the repository at this point in the history
  • Loading branch information
kvsxxx committed Nov 27, 2021
1 parent 88413af commit 0915e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord_ui/slash/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,7 +1636,7 @@ async def nuke(self, globals=True, guilds=All):
>>> await commands.nuke(globals=False, guilds=[814473329325899787])
"""
if guilds is All:
guilds = self._cache["!globals"]
guilds = self["!globals"]
if guilds is None:
guilds = []
if globals is True:
Expand Down

0 comments on commit 0915e84

Please sign in to comment.