feat: advertise opt in and opt out commands
This commit is contained in:
@@ -12,17 +12,17 @@ use twilight_model::{
|
||||
application::{command::Command, interaction::Interaction},
|
||||
id::{
|
||||
Id,
|
||||
marker::{ApplicationMarker, UserMarker},
|
||||
marker::{ApplicationMarker, CommandMarker, UserMarker},
|
||||
},
|
||||
};
|
||||
|
||||
use crate::{GuildVoiceChannelToTextChannel, UserDataManager, VCs};
|
||||
|
||||
mod debug;
|
||||
mod join;
|
||||
mod leave;
|
||||
mod opt_in;
|
||||
mod opt_out;
|
||||
pub mod debug;
|
||||
pub mod join;
|
||||
pub mod leave;
|
||||
pub mod opt_in;
|
||||
pub mod opt_out;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct State {
|
||||
@@ -33,6 +33,10 @@ pub struct State {
|
||||
pub discord_application_id: Id<ApplicationMarker>,
|
||||
pub discord_bot_owner_user_id: Id<UserMarker>,
|
||||
pub discord_client: Arc<twilight_http::Client>,
|
||||
pub discord_opt_in_command_id: Id<CommandMarker>,
|
||||
pub discord_opt_in_command_name: Arc<str>,
|
||||
pub discord_opt_out_command_id: Id<CommandMarker>,
|
||||
pub discord_opt_out_command_name: Arc<str>,
|
||||
pub discord_user_id: Id<UserMarker>,
|
||||
pub discord_voice_channel_corresponding_text_channel: Arc<GuildVoiceChannelToTextChannel>,
|
||||
pub recording_data: Operator,
|
||||
|
||||
Reference in New Issue
Block a user