Поставил бота на Replit, на локальной машине всё работает, вынес display_name в переменные, думал может поможет
An exception has occurred while executing command `p`:
Traceback (most recent call last):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord_slash/client.py", line 1353, in invoke_command
await func.invoke(ctx, **args)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord_slash/model.py", line 210, in invoke
return await self.func(*args, **kwargs)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/discord/ext/commands/core.py", line 374, in __call__
return await self.callback(*args, **kwargs)
File "main.py", line 34, in p
judge2dn = judge2.display_name
AttributeError: 'str' object has no attribute 'display_name'
Код:
guiltyDN = guilty.display_name
judgedn = judge.display_name
judge2dn = judge2.display_name
judge3dn = judge3.display_name
judge4dn = judge4.display_name
judge5dn = judge5.display_name