discordaio.channel
¶
Contains all related Channel Discord objects
Classes¶
Channel
: Represents a guild or DM channel within Discord.ChannelMessage
: Represents a message sent in a channel within Discord.Overwrite
: Represents a Overwrite object.MessageActivity
: Represents a Message Activity.MessageApplication
: Represents a Message Application.Reaction
: Represents a Reaction.Embed
: Represents a discord EmbedEmbedThumbnail
: Represents a embed thumbnail objectEmbedVideo
: Represents a embed videoEmbedImage
: Represents a embed imageEmbedProvider
: Represents a embed providerEmbedAuthor
: Represents a embed authorEmbedFooter
: Represents a embed footerEmbedField
: Represents a embed fieldAttachment
: Represents a attachment
-
class
discordaio.channel.
Channel
(id=0, type=0, guild_id=0, position=0, permission_overwrites=[], name='', topic='', nsfw=False, last_message_id=0, bitrate=0, user_limit=0, recipients=[], icon='', owner_id=0, application_id=0, parent_id=0, last_pin_timestamp=None)[source]¶ Represents a guild or DM channel within Discord.
New in version 0.2.0.
-
permission_overwrites
¶ list
ofOverwrite
, optional – explicit permission overwrites for members and roles
-
last_message_id
¶ int
, optional – the id of the last message sent in this channel (may not point to an existing or valid message)
Inheritance
-
-
class
discordaio.channel.
ChannelMessage
(id=0, channel_id=0, author=None, content='', timestamp=None, edited_timestamp=None, tts=False, mention_everyone=False, mentions=[], mention_roles=[], attachments=[], embeds=[], reactions=[], nonce=0, pinned=False, webhook_id=0, type=0, activity=<discordaio.channel.MessageActivity object>, application=<discordaio.channel.MessageApplication object>)[source]¶ Represents a message sent in a channel within Discord.
New in version 0.2.0.
Note
The author object follows the structure of the
User
object, but is only a valid user in the case where the message is generated by a user or bot user. If the message is generated by aWebhook
, the author object corresponds to the webhook’s id, username, and avatar. You can tell if a message is generated by a webhook by checking for the webhook_id on the message object.user – object the author of this message (not guaranteed to be a valid user, see below)
-
attachments
¶ list
ofAttachment
– objects any attached files
-
activity
¶ MessageActivity – activity object sent with Rich Presence-related chat embeds
-
application
¶ MessageApplication – application object sent with Rich Presence-related chat embeds
Inheritance
-
class
discordaio.channel.
Overwrite
(id=0, type='', allow=0, deny=0)[source]¶ Represents a Overwrite object.
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
MessageActivity
(type=None, party_id='')[source]¶ Represents a Message Activity.
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
MessageApplication
(id=0, cover_image='', description='', icon='', name='')[source]¶ Represents a Message Application.
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
Reaction
(count=0, me=False, emoji=None)[source]¶ Represents a Reaction.
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
Embed
(title='', type='', description='', url='', timestamp=None, color=0, footer=<discordaio.channel.EmbedFooter object>, image=<discordaio.channel.EmbedImage object>, thumbnail=<discordaio.channel.EmbedThumbnail object>, video=<discordaio.channel.EmbedVideo object>, provider=<discordaio.channel.EmbedProvider object>, author=<discordaio.channel.EmbedAuthor object>, fields=[])[source]¶ Represents a discord Embed
New in version 0.2.0.
EmbedFooter
– footer information
-
image
¶ EmbedImage
– image information
-
thumbnail
¶ EmbedThumbnail
– thumbnail information
-
video
¶ EmbedVideo
– video information
-
provider
¶ EmbedProvider
– provider information
EmbedAuthor
– author information
-
fields
¶ list
ofEmbedField
– fields information
Inheritance
-
class
discordaio.channel.
EmbedThumbnail
(url='', proxy_url='', height=0, width=0)[source]¶ Represents a embed thumbnail object
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
EmbedVideo
(url='', height=0, width=0)[source]¶ Represents a embed video
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
EmbedImage
(url='', proxy_url='', height=0, width=0)[source]¶ Represents a embed image
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
EmbedProvider
(name='', url='')[source]¶ Represents a embed provider
New in version 0.2.0.
Inheritance
-
class
discordaio.channel.
EmbedAuthor
(name='', url='', icon_url='', proxy_icon_url='')[source]¶ Represents a embed author
New in version 0.2.0.
Inheritance
Represents a embed footer
New in version 0.2.0.
str
– footer text
str
– url of footer icon (only supports http(s) and attachments)
str
– a proxied url of footer icon
Inheritance
-
class
discordaio.channel.
EmbedField
(name='', value='', inline=False)[source]¶ Represents a embed field
New in version 0.2.0.
Inheritance