removed framework impl

This commit is contained in:
2021-11-02 20:19:29 +00:00
parent f1bfc11160
commit a21f518b21
4 changed files with 18 additions and 36 deletions

View File

@ -9,16 +9,13 @@ use std::{
use log::info;
use serde::{Deserialize, Serialize};
use serenity::{
async_trait,
builder::{CreateApplicationCommands, CreateComponents, CreateEmbed},
cache::Cache,
client::Context,
framework::Framework,
futures::prelude::future::BoxFuture,
http::Http,
model::{
channel::Message,
guild::{Guild, Member},
guild::Guild,
id::{ChannelId, GuildId, RoleId, UserId},
interactions::{
application_command::{
@ -689,8 +686,3 @@ impl RegexFramework {
}
}
}
#[async_trait]
impl Framework for RegexFramework {
async fn dispatch(&self, _ctx: Context, _msg: Message) {}
}

View File

@ -244,7 +244,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
})
.application_id(application_id.0)
.event_handler(Handler)
.framework_arc(framework_arc.clone())
.await
.expect("Error occurred creating client");