diff --git a/src/database.rs b/src/database.rs
index d1dc96a..22c0f3f 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -327,6 +327,42 @@ pub fn get_player(connection: &Connection, player: PlayerId) -> sqlite::Result
sqlite::Result {
+ let query = "SELECT id, name, prefix FROM players WHERE discrim = ?";
+
+ let mut statement = connection.prepare(&query)?;
+ statement.bind((1, discrim))?;
+ statement.next()?;
+ Ok(PlayerData {
+ id: PlayerId(statement.read::("id")? as u64),
+ name: statement.read::("name")?,
+ prefix: statement.read::