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 ( )
guildgetter.
-
GuildMessage crosspost ( ) coroutine
Cross-post a message in a
Guild.GuildNewsChannelto following channels. Requires theSEND_MESSAGESpermission, if the current user sent the message, or additionally theMANAGE_MESSAGESpermission, for all other users' messages.