cleaned up a bit
This commit is contained in:
parent
c31be2f7da
commit
461326be30
@ -17,7 +17,7 @@ use serenity::{
|
||||
Client, Context,
|
||||
},
|
||||
framework::standard::{
|
||||
Args, CommandResult, CheckResult, DispatchError, StandardFramework, Reason,
|
||||
Args, CommandError, CommandResult, CheckResult, DispatchError, StandardFramework, Reason,
|
||||
macros::{
|
||||
command, group, check, hook,
|
||||
}
|
||||
@ -65,7 +65,6 @@ use std::{
|
||||
sync::Arc,
|
||||
time::Duration,
|
||||
};
|
||||
use serenity::framework::standard::CommandError;
|
||||
|
||||
|
||||
struct SQLPool;
|
||||
@ -236,7 +235,7 @@ impl EventHandler for Handler {
|
||||
if guild_data.allow_greets {
|
||||
let join_id_res = sqlx::query!(
|
||||
"
|
||||
SELECT join_sound_id
|
||||
SELECT join_sound_id
|
||||
FROM users
|
||||
WHERE user = ? AND join_sound_id IS NOT NULL
|
||||
",
|
||||
@ -251,7 +250,7 @@ impl EventHandler for Handler {
|
||||
let mut sound = sqlx::query_as_unchecked!(
|
||||
Sound,
|
||||
"
|
||||
SELECT name, id, plays, public, server_id, uploader_id
|
||||
SELECT name, id, plays, public, server_id, uploader_id
|
||||
FROM sounds
|
||||
WHERE id = ?
|
||||
",
|
||||
|
Loading…
Reference in New Issue
Block a user