aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-30 03:29:44 -0400
committerRapptz <[email protected]>2021-04-30 03:29:44 -0400
commit1a8d63d54fe402a319aa78cba0cc9814ad7fb5ff (patch)
tree9328e9002577b25391076b59b52001c846720bed /discord/ext/commands
parent[commands] Fix Generics causing other typing converters to fail (diff)
downloaddiscord.py-1a8d63d54fe402a319aa78cba0cc9814ad7fb5ff.tar.xz
discord.py-1a8d63d54fe402a319aa78cba0cc9814ad7fb5ff.zip
[commands] Remove Flag related delimiter and prefix error
Diffstat (limited to 'discord/ext/commands')
-rw-r--r--discord/ext/commands/flags.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/discord/ext/commands/flags.py b/discord/ext/commands/flags.py
index 07c9cfc4..b356af34 100644
--- a/discord/ext/commands/flags.py
+++ b/discord/ext/commands/flags.py
@@ -276,9 +276,6 @@ class FlagsMeta(type):
):
attrs['__commands_is_flag__'] = True
- if not prefix and not delimiter:
- raise TypeError('Must have either a delimiter or a prefix set')
-
try:
global_ns = sys.modules[attrs['__module__']].__dict__
except KeyError: