curious.dataclasses.voice_state
Wrappers for voice state objects.
Classes
VoiceState(**kwargs) |
Represents the voice state of a user. |
-
class
curious.dataclasses.voice_state.VoiceState(**kwargs) → None[source]
Bases: object
Represents the voice state of a user.
-
user_id
The ID of the user for this VoiceState.
-
guild_id
The ID of the guild for this VoiceState.
-
channel_id
The ID of the channel for this VoiceState.
-
guild
| Return type: | Guild |
| Returns: | The Guild associated, or None if the guild is uncached. |
-
channel
| Return type: | Channel |
| Returns: | The Channel associated, or None if the channel is uncached. |
-
member
-
-
muted
| Return type: | bool |
| Returns: | If this user is muted or not. |
-
deafened
| Return type: | bool |
| Returns: | If this user is deafened or not. |
-
await
mute()[source]
Server mutes this member on the guild.
-
await
unmute()[source]
Server unmutes this member on the guild.
-
await
deafen()[source]
Server deafens this member on the guild.
-
await
undeafen()[source]
Server undeafens this member on the guild.
-
await
move(to_channel)[source]
Moves a user to a different voice channel.