GuildMessage

Inherits: Message < TextChannel < TextChannel.BaseMessage < Channel < MentionableEntity < DiscordEntity < Reference < Object

Description

Represents a message sent in a guild channel within Discord.

Properties

type name
int guild_id
Guild guild
Guild.Member member
Array role_mentions
bool mention_everyone
bool is_tts

Methods

return type signature
Guild get_guild ( )
GuildMessage crosspost ( ) coroutine

Property Descriptions

  • int guild_id

    The id of the guild.


  • Guild guild

    method
    Getter get_guild()

    The guild in which the message was sent.


  • Guild.Member member

    The guild member who sent the message.


  • Array role_mentions

    List of Guild.Roles mentioned in the message.


  • bool mention_everyone

    Whether the message mentions everyone.


  • bool is_tts

    Whether the message is a TTS message.

Method Descriptions

  • Guild get_guild ( )

    guild getter.


  • GuildMessage crosspost ( ) coroutine

    Cross-post a message in a Guild.GuildNewsChannel to following channels. Requires the SEND_MESSAGES permission, if the current user sent the message, or additionally the MANAGE_MESSAGES permission, for all other users' messages.