Skip to content

Mention Helper


mention

Mention

Mention an object in a message.

user staticmethod

Mention a user.

Parameters:

Returns:

  • str –

    formatted user mention

channel staticmethod

Mention a channel

Parameters:

  • channel_id (Snowflake) –

    ID of the channel

Returns:

  • str –

    formatted channel mention

role staticmethod

Mention a role

Parameters:

Returns:

  • str –

    formatted role mention

slash_command staticmethod

Mention a slash command.

Parameters:

  • command_name (str) –

    name of the command

  • command_id (Snowflake) –

    ID of the command

Returns:

  • str –

    formatted slash command mention

subcommand staticmethod

Mention a subcommand.

Parameters:

  • command_name (str) –

    name of the command

  • subcommand_name (str) –

    name of the subcommand

  • command_id (Snowflake) –

    ID of the command

Returns:

  • str –

    formatted subcommand mention

subcommand_group staticmethod

Mention a subcommand group.

Parameters:

  • command_name (str) –

    name of the command

  • subcommand_group_name (str) –

    name of the command group

  • subcommand_name (str) –

    name of the subcommand

  • command_id (Snowflake) –

    ID of the command

Returns:

  • str –

    formatted subcommand group mention