Fix missing references to the best of my ability

This commit is contained in:
kozabrada123 2023-07-31 10:28:18 +02:00
parent 261ae6eb4a
commit c0bc2ee9e2
4 changed files with 12 additions and 4 deletions

View File

@ -13,7 +13,9 @@ use crate::types::{GatewayIdentifyPayload, LoginResult, LoginSchema};
impl Instance { impl Instance {
/// Logs into an existing account on the spacebar server. /// Logs into an existing account on the spacebar server.
// TODO: Couldn't find reference ///
/// # Reference
/// See <https://docs.spacebar.chat/routes/#post-/auth/login/>
pub async fn login_account(&mut self, login_schema: &LoginSchema) -> ChorusResult<UserMeta> { pub async fn login_account(&mut self, login_schema: &LoginSchema) -> ChorusResult<UserMeta> {
let endpoint_url = self.urls.api.clone() + "/auth/login"; let endpoint_url = self.urls.api.clone() + "/auth/login";
let chorus_request = ChorusRequest { let chorus_request = ChorusRequest {

View File

@ -15,7 +15,9 @@ use crate::{
impl Instance { impl Instance {
/// Registers a new user on the server. /// Registers a new user on the server.
// TODO: Couldn't find reference ///
/// # Reference
/// See <https://docs.spacebar.chat/routes/#post-/auth/register/>
pub async fn register_account( pub async fn register_account(
&mut self, &mut self,
register_schema: &RegisterSchema, register_schema: &RegisterSchema,

View File

@ -35,7 +35,9 @@ impl types::RoleObject {
} }
/// Retrieves a single role for a given guild. /// Retrieves a single role for a given guild.
// TODO: Couldn't find reference ///
/// # Reference
/// See <https://docs.spacebar.chat/routes/#get-/guilds/-guild_id-/roles/-role_id-/>
pub async fn get( pub async fn get(
user: &mut UserMeta, user: &mut UserMeta,
guild_id: Snowflake, guild_id: Snowflake,

View File

@ -110,7 +110,9 @@ impl User {
} }
/// Gets the user's settings. /// Gets the user's settings.
// TODO: Couldn't find reference ///
/// # Reference
/// See <https://luna.gitlab.io/discord-unofficial-docs/user_settings.html#get-users-me-settings>
pub async fn get_settings( pub async fn get_settings(
token: &String, token: &String,
url_api: &String, url_api: &String,