mirror of
https://github.com/mii443/ncb-tts-r2.git
synced 2025-08-22 16:15:29 +00:00
supress warn
This commit is contained in:
@ -14,6 +14,7 @@ use config::Config;
|
|||||||
use data::{DatabaseClientData, TTSClientData, TTSData};
|
use data::{DatabaseClientData, TTSClientData, TTSData};
|
||||||
use database::database::Database;
|
use database::database::Database;
|
||||||
use event_handler::Handler;
|
use event_handler::Handler;
|
||||||
|
#[allow(deprecated)]
|
||||||
use serenity::{
|
use serenity::{
|
||||||
all::{standard::Configuration, ApplicationId},
|
all::{standard::Configuration, ApplicationId},
|
||||||
client::Client,
|
client::Client,
|
||||||
@ -35,6 +36,7 @@ use songbird::SerenityInit;
|
|||||||
///
|
///
|
||||||
/// client.start().await;
|
/// client.start().await;
|
||||||
/// ```
|
/// ```
|
||||||
|
#[allow(deprecated)]
|
||||||
async fn create_client(prefix: &str, token: &str, id: u64) -> Result<Client, serenity::Error> {
|
async fn create_client(prefix: &str, token: &str, id: u64) -> Result<Client, serenity::Error> {
|
||||||
let framework = StandardFramework::new();
|
let framework = StandardFramework::new();
|
||||||
framework.configure(Configuration::new().with_whitespace(true).prefix(prefix));
|
framework.configure(Configuration::new().with_whitespace(true).prefix(prefix));
|
||||||
|
Reference in New Issue
Block a user