DiscordEntity¶
Inherited By: TextChannel.BaseMessage, ChannelMention, DiscordApplication, DiscordApplicationCommand, DiscordInteraction, DiscordTeam, DiscordWebhook, Guild, Guild.GuildScheduledEvent, MentionableEntity, MessageAttachment, MessageSticker, PartialChannel, PermissionOverwrite, Presence, Guild.StageInstance, DiscordTeam.TeamMember, Guild.VoiceState, WelcomeScreen
Description¶
Abstract class for Discord API objects.
Properties¶
| type | name |
|---|---|
| Snowflake | snowflake |
| int | id |
Methods¶
| return type | signature |
|---|---|
| DiscordEntity | clone ( ) |
| bool | equals ( DiscordEntity entity ) |
| bool | is_partial ( ) |
| int | get_id ( ) |
Constants¶
-
Dictionary DEFAULT_CONTAINER
-
applications = {}
-
channels = {}
-
guilds = {}
-
messages = {}
-
presences = {}
-
users = {}
-
teams = {}
-
bot_id = 0
-
application_id = 0
There is currently no description for this constant.
-
Property Descriptions¶
-
Snowflake snowflake
Snowflakerepresentation of this object's `id.
-
int id
method Getter get_id() Object's id.
Method Descriptions¶
-
DiscordEntity DiscordEntity ( int _id )
There is currently no description for this method.
-
DiscordEntity clone ( )
Clone this object instance, not implemented in all sub classes.
-
bool equals ( DiscordEntity entity )
Check whether this instance is equal to
entity. returnstrueIf theentity.idand the object type matches.
-
bool is_partial ( )
Returns true if this object is partial. A partial object has uncompleted data so its properties are unreliable to work with.
-
int get_id ( )
idgetter.