mirror of
https://github.com/mii443/ncb-tts-r2.git
synced 2025-08-22 16:15:29 +00:00
fix warnings
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
use serenity::{
|
||||
all::{
|
||||
ButtonStyle, CommandInteraction, CreateActionRow, CreateButton, CreateInteractionResponse, CreateInteractionResponseMessage, CreateSelectMenu, CreateSelectMenuKind, CreateSelectMenuOption, MessageFlags
|
||||
ButtonStyle, CommandInteraction, CreateActionRow, CreateButton, CreateInteractionResponse, CreateInteractionResponseMessage, CreateSelectMenu, CreateSelectMenuKind, CreateSelectMenuOption
|
||||
},
|
||||
prelude::Context,
|
||||
};
|
||||
|
@ -86,11 +86,6 @@ pub async fn setup_command(
|
||||
match value.as_str() {
|
||||
"TEXT_CHANNEL" => command.channel_id,
|
||||
"NEW_THREAD" => {
|
||||
let message = command
|
||||
.channel_id
|
||||
.send_message(&ctx.http, CreateMessage::new().content("TTS thread"))
|
||||
.await
|
||||
.unwrap();
|
||||
command
|
||||
.channel_id
|
||||
.create_thread(&ctx.http, CreateThread::new("TTS").auto_archive_duration(AutoArchiveDuration::OneHour).kind(serenity::all::ChannelType::PublicThread))
|
||||
|
@ -1,7 +1,6 @@
|
||||
use serenity::{
|
||||
all::{
|
||||
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage,
|
||||
MessageFlags
|
||||
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage
|
||||
},
|
||||
model::prelude::UserId,
|
||||
prelude::Context,
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
use serenity::{
|
||||
all::{
|
||||
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage, EditThread, MessageFlags
|
||||
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage, EditThread
|
||||
},
|
||||
model::prelude::UserId,
|
||||
prelude::Context
|
||||
|
@ -8,7 +8,7 @@ use crate::{
|
||||
tts::tts_type::TTSType,
|
||||
};
|
||||
use serenity::{
|
||||
all::{ActionRowComponent, ButtonStyle, ComponentInteractionDataKind, CreateActionRow, CreateButton, CreateEmbed, CreateInputText, CreateInteractionResponse, CreateInteractionResponseMessage, CreateModal, CreateSelectMenu, CreateSelectMenuKind, CreateSelectMenuOption, InputTextStyle, MessageFlags}, async_trait, client::{Context, EventHandler}, model::{
|
||||
all::{ActionRowComponent, ButtonStyle, ComponentInteractionDataKind, CreateActionRow, CreateButton, CreateEmbed, CreateInputText, CreateInteractionResponse, CreateInteractionResponseMessage, CreateModal, CreateSelectMenu, CreateSelectMenuKind, CreateSelectMenuOption, InputTextStyle}, async_trait, client::{Context, EventHandler}, model::{
|
||||
application::Interaction, channel::Message, gateway::Ready, prelude::ChannelType, voice::VoiceState
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user