1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Correct the conversion for the restriction options

This commit is contained in:
phxntxm 2017-06-27 22:25:33 -05:00
parent 39353ea6e7
commit e794c95c50

View file

@ -276,13 +276,13 @@ class Administration:
# allowed)
if isinstance(option1, (commands.core.Command, commands.core.Group)):
restriction = {
'source': option1,
'destination': option2
'source': option1.qualified_name,
'destination': str(option2.id)
}
else:
restriction = {
'source': option2,
'destination': option1
'source': option2.qualified_name,
'destination': str(option1.id)
}
# Load restrictions