chore: format
This commit is contained in:
10
src/call.rs
10
src/call.rs
@@ -16,12 +16,10 @@ use std::{
|
||||
time::Instant,
|
||||
};
|
||||
use time::UtcDateTime;
|
||||
use twilight_model::
|
||||
id::{
|
||||
Id,
|
||||
marker::{ChannelMarker, GuildMarker, UserMarker},
|
||||
}
|
||||
;
|
||||
use twilight_model::id::{
|
||||
Id,
|
||||
marker::{ChannelMarker, GuildMarker, UserMarker},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
struct Handler {
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
use crate::{
|
||||
VCs, call::join_and_record, command::State,
|
||||
};
|
||||
use crate::{VCs, call::join_and_record, command::State};
|
||||
use snafu::{OptionExt as _, Snafu};
|
||||
use std::
|
||||
sync::LazyLock
|
||||
;
|
||||
use std::sync::LazyLock;
|
||||
use twilight_model::{
|
||||
application::{
|
||||
command::{Command, CommandType},
|
||||
@@ -131,7 +127,8 @@ pub async fn handle(state: State, interaction: Interaction) {
|
||||
.songbird(&state.songbird)
|
||||
.user_data_manager(state.user_data_manager)
|
||||
.voice_channel_id(voice_channel_id)
|
||||
.call().await
|
||||
.call()
|
||||
.await
|
||||
{
|
||||
Ok(()) => {
|
||||
let channel_mention = format!("<#{voice_channel_id}>");
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use clap::Parser;
|
||||
use fomo_reducer::{
|
||||
BotDataManager, CommandRouter, GuildVoiceChannelToTextChannel, State, Storage, UserDataManager, VCsSender, all_commands, command, heat_seek, initialize_vcs, update_vcs
|
||||
BotDataManager, CommandRouter, GuildVoiceChannelToTextChannel, State, Storage, UserDataManager,
|
||||
VCsSender, all_commands, command, heat_seek, initialize_vcs, update_vcs,
|
||||
};
|
||||
use secrecy::{ExposeSecret, SecretString};
|
||||
use snafu::{OptionExt, ResultExt, Snafu};
|
||||
|
||||
Reference in New Issue
Block a user