Models¶
Note
Nearly all classes here have slots defined which means that it is impossible to have dynamic attributes to the data classes.
Teams¶
Channels¶
- asyncsend
- asyncsend_as_user
- class slack.Channel¶
This function is a constructor for the Channel class. It takes in a ConnectionState object and a ChannelPayload object. It sets the state, id, name, team, created_at, and created_by attributes of the Channel object. It then calls the overload function
- id¶
Channel ID.
- Type
str
- name¶
Account name.
- Type
str
- created_at¶
When create this channel.
- Type
datetime
DeletedChannel¶
Messages¶
- class slack.Message¶
This function is a constructor for the Message class. It takes in two parameters, state and data. The state parameter is a ConnectionState object, and the data parameter is a MessagePayload object. The function then sets the state, team_id, id, author, channel_id, and created_at attributes of the Message object
- id¶
Message ID.
- Type
str
- content¶
Message content.
- Type
str
- created_at¶
Message created at.
- Type
datetime
- await delete() None¶
It deletes a message.
- class slack.DeletedMessage¶
This function is used to delete a message from a channel
- ts¶
time when deleted
- Type
datetime
is ephemeral
- Type
bool
- deleted_text¶
The text what deleted message.
- Type
str
- class slack.JoinMessage¶
This function is a constructor for the JoinMessage class. It takes in a ConnectionState and a JoinMessagePayload as parameters and sets the author of the message to the user in the JoinMessagePayload
- state¶
The ConnectionState object that represents the current state of the connection.
- Type
ConnectionState
- await delete() None¶
It deletes a message.
Members¶
- class slack.Member¶
This function takes in a UserPayload object and assigns it to the data attribute of the User class
- state¶
The connection state.
- Type
ConnectionState
- id¶
Your user ID.
- Type
str
- deleted¶
Account was deleted.
- Type
bool
- color¶
Account icon color.
- Type
str
- name¶
Account name.
- Type
str