fix warnings

This commit is contained in:
mii443
2025-04-03 02:38:40 +09:00
parent 1975b2e9cd
commit b4de0f1ad6
5 changed files with 4 additions and 10 deletions

View File

@ -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,
};

View File

@ -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))

View File

@ -1,7 +1,6 @@
use serenity::{
all::{
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage,
MessageFlags
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage
},
model::prelude::UserId,
prelude::Context,

View File

@ -1,7 +1,7 @@
use serenity::{
all::{
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage, EditThread, MessageFlags
CommandInteraction, CreateInteractionResponse, CreateInteractionResponseMessage, EditThread
},
model::prelude::UserId,
prelude::Context

View File

@ -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
}
};