Bit fields

Some of the fields in the API models are represented by bit fields. These wrappers allow for easy access and write to the individual bits as well as some other common operations like equality comparisons.

ChannelPermissions

final class mutiny.bits.ChannelPermissions[source]

Represents the channel permissions.

view

Allows members to view the channel.

send_message

Allows members to send messages in the text channel.

manage_messages

Allows members to delete messages sent by other members in the text channel.

manage_channel

Allows members to manage the channel.

voice_call

Allows members to join the voice channel.

invite_others

Allows members to invite other users to the channel.

Allows members to show embedded content on links the user posts in the text channel.

upload_files

Allows members to upload files in the text channel.

__eq__(other)[source]

Compare the bit fields for equality.

Parameters

other (Any) – The other bit field. This bit field needs to be of the same type to compare equal.

__ne__(other)[source]

Compare the bit fields for inequality.

Parameters

other (Any) – The other bit field. This bit field will also be considered unequal if it is not of the same type.

ServerPermissions

final class mutiny.bits.ServerPermissions[source]

Represents the server permissions.

view

Allows members to view the channel.

manage_roles

Allows members to create, edit and delete roles with a lower than theirs. Also allows them to modify role permissions on channels.

manage_channels

Allows members to crete, edit and delete channels.

manage_server

Allows members to change the server’s name, description, icon and other related information.

kick_members

Allows members to remove members from the server. Kicked members may rejoin with an invite.

ban_members

Allows members to permanently remove members from the server.

change_nickname

Allows members to change the nickname on the server.

manage_nicknames

Allows members to change the nicknames of other members on the server.

change_avatar

Allows members to change their server avatar on the server.

remove_avatars

Allows members to remove the server avatar of other members on the server.

__eq__(other)[source]

Compare the bit fields for equality.

Parameters

other (Any) – The other bit field. This bit field needs to be of the same type to compare equal.

__ne__(other)[source]

Compare the bit fields for inequality.

Parameters

other (Any) – The other bit field. This bit field will also be considered unequal if it is not of the same type.

Badges

final class mutiny.bits.Badges[source]

Represents user’s badges.

developer

Developer.

translator

Translator.

supporter

Supporter.

responsible_disclosure

Responsible Disclosure.

revolt_team

Revolt Team.

early_adopter

Early Adopter.

__eq__(other)[source]

Compare the bit fields for equality.

Parameters

other (Any) – The other bit field. This bit field needs to be of the same type to compare equal.

__ne__(other)[source]

Compare the bit fields for inequality.

Parameters

other (Any) – The other bit field. This bit field will also be considered unequal if it is not of the same type.

ServerFlags

final class mutiny.bits.ServerFlags[source]

Represents server’s flags.

official

Official Revolt server.

verified

Verified community server.

__eq__(other)[source]

Compare the bit fields for equality.

Parameters

other (Any) – The other bit field. This bit field needs to be of the same type to compare equal.

__ne__(other)[source]

Compare the bit fields for inequality.

Parameters

other (Any) – The other bit field. This bit field will also be considered unequal if it is not of the same type.

UserFlags

final class mutiny.bits.UserFlags[source]

Represents user’s flags.

suspended

The account is suspended.

deleted

The account was deleted.

banned

The account is banned.

__eq__(other)[source]

Compare the bit fields for equality.

Parameters

other (Any) – The other bit field. This bit field needs to be of the same type to compare equal.

__ne__(other)[source]

Compare the bit fields for inequality.

Parameters

other (Any) – The other bit field. This bit field will also be considered unequal if it is not of the same type.