Skip to content

discord.app_commands.errors.CommandInvokeError: Command 'list' raised an exception: AttributeError: 'NoneType' object has no attribute 'mention'  #2350

@csss-admin

Description

@csss-admin
2025-10-26 23:14:02 = ERROR = ReactionRole = Encountered exception in command 'list'
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 857, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/usr/src/app/extensions/reaction_role.py", line 381, in list_reaction_roles
    desc.append(f'{emoji} {role.mention}')
AttributeError: 'NoneType' object has no attribute 'mention'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/discord/app_commands/tree.py", line 1310, in _call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 883, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/site-packages/discord/app_commands/commands.py", line 876, in _do_call
    raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'list' raised an exception: AttributeError: 'NoneType' object has no attribute 'mention'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions