cleaned up a bit

This commit is contained in:
jude-lafitteIII 2020-06-04 02:29:48 +01:00
parent c31be2f7da
commit 461326be30

View File

@ -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 = ?
",