Browse Source

Stop manually setting name_localized in application command dict (fixes #365)

pull/10109/head
dolfies 3 years ago
parent
commit
574ca88fd9
  1. 1
      discord/commands.py

1
discord/commands.py

@ -355,7 +355,6 @@ class UserCommand(BaseCommand):
raise TypeError('__call__() missing 1 required positional argument: \'user\'')
command = self._data
command['name_localized'] = command['name']
data = {
'application_command': command,
'attachments': [],

Loading…
Cancel
Save