mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
[commands] Remove Flag related delimiter and prefix error
This commit is contained in:
@ -276,9 +276,6 @@ class FlagsMeta(type):
|
|||||||
):
|
):
|
||||||
attrs['__commands_is_flag__'] = True
|
attrs['__commands_is_flag__'] = True
|
||||||
|
|
||||||
if not prefix and not delimiter:
|
|
||||||
raise TypeError('Must have either a delimiter or a prefix set')
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
global_ns = sys.modules[attrs['__module__']].__dict__
|
global_ns = sys.modules[attrs['__module__']].__dict__
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Reference in New Issue
Block a user