pub struct Discodo { /* private fields */ }
Implementations§
Source§impl Discodo
impl Discodo
pub async fn serenity( host: &str, port: Option<usize>, password: Option<&str>, ) -> Arc<Self>
pub async fn connect(discodo: Arc<Discodo>)
pub fn get<U: Into<UserId>, G: Into<GuildId>>(&self, user_id: U, guild_id: G)
Sourcepub async fn status(&self) -> StatusResponse
pub async fn status(&self) -> StatusResponse
Check the resource status of the server. Docs
Sourcepub async fn unmark(&self, address: &str) -> String
pub async fn unmark(&self, address: &str) -> String
Unmark all address on planner’s failed list. Docs
Sourcepub async fn unmark_all(&self) -> String
pub async fn unmark_all(&self) -> String
Get the information of the video searched on Youtube Docs
pub async fn get_source(&self, query: &str) -> SourceResponse
Sourcepub async fn put_source(
&self,
user_id: UserId,
guild_id: GuildId,
source: Source,
) -> Option<String>
pub async fn put_source( &self, user_id: UserId, guild_id: GuildId, source: Source, ) -> Option<String>
Put source object to queue Docs
Sourcepub async fn load_source(
&self,
user_id: UserId,
guild_id: GuildId,
query: &str,
) -> Option<String>
pub async fn load_source( &self, user_id: UserId, guild_id: GuildId, query: &str, ) -> Option<String>
Load query from youtube and put source object to queue Docs
Sourcepub async fn set_volume(
&self,
user_id: UserId,
guild_id: GuildId,
volume: f32,
) -> Option<u16>
pub async fn set_volume( &self, user_id: UserId, guild_id: GuildId, volume: f32, ) -> Option<u16>
Set volume of Guild ID Docs
Sourcepub async fn set_crossfade(
&self,
user_id: UserId,
guild_id: GuildId,
crossfade: f32,
) -> Option<u16>
pub async fn set_crossfade( &self, user_id: UserId, guild_id: GuildId, crossfade: f32, ) -> Option<u16>
Set crossfade of Guild ID Docs
Sourcepub async fn set_gapless(
&self,
user_id: UserId,
guild_id: GuildId,
gapless: f32,
) -> Option<u16>
pub async fn set_gapless( &self, user_id: UserId, guild_id: GuildId, gapless: f32, ) -> Option<u16>
Set gapless of Guild ID Docs
Sourcepub async fn set_autoplay(
&self,
user_id: UserId,
guild_id: GuildId,
autoplay: bool,
) -> Option<u16>
pub async fn set_autoplay( &self, user_id: UserId, guild_id: GuildId, autoplay: bool, ) -> Option<u16>
Set autoplay of Guild ID Docs
Sourcepub async fn seek(
&self,
user_id: UserId,
guild_id: GuildId,
offset: f32,
) -> Option<u16>
pub async fn seek( &self, user_id: UserId, guild_id: GuildId, offset: f32, ) -> Option<u16>
Seek source to offset of Guild ID Docs
Sourcepub async fn skip(
&self,
user_id: UserId,
guild_id: GuildId,
offset: f32,
) -> Option<u16>
pub async fn skip( &self, user_id: UserId, guild_id: GuildId, offset: f32, ) -> Option<u16>
Skip source of Guild ID Docs
Sourcepub async fn pause(&self, user_id: UserId, guild_id: GuildId) -> Option<u16>
pub async fn pause(&self, user_id: UserId, guild_id: GuildId) -> Option<u16>
Pause source of Guild ID Docs
Sourcepub async fn resume(&self, user_id: UserId, guild_id: GuildId) -> Option<u16>
pub async fn resume(&self, user_id: UserId, guild_id: GuildId) -> Option<u16>
Resume source of Guild ID Docs
Sourcepub async fn shuffle(
&self,
user_id: UserId,
guild_id: GuildId,
) -> Option<String>
pub async fn shuffle( &self, user_id: UserId, guild_id: GuildId, ) -> Option<String>
Shuffle the queue of Guild ID Docs
Sourcepub async fn remove(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
pub async fn remove(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
Remove source object from the queue of Guild ID Docs
Sourcepub async fn state(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
pub async fn state(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
Get state of Guild ID Docs
Sourcepub async fn queue(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
pub async fn queue(&self, user_id: UserId, guild_id: GuildId) -> Option<String>
Get state of Guild ID Docs
Sourcepub async fn _set_filter(&self, _user_id: UserId, _guild_id: GuildId)
pub async fn _set_filter(&self, _user_id: UserId, _guild_id: GuildId)
Set filter of Guild ID Docs
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Discodo
impl !RefUnwindSafe for Discodo
impl Send for Discodo
impl Sync for Discodo
impl Unpin for Discodo
impl UnwindSafe for Discodo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more