Fix broken luna.gitlab.io links (#480)

docs: fix broken luna.gitlab.io links
This commit is contained in:
kozabrada123 2024-02-25 09:54:06 +01:00 committed by GitHub
parent b21d04647d
commit 5a1931951f
3 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ impl ChorusUser {
/// Retrieves a list of mutual friends between the authenticated user and a given user.
///
/// # Reference
/// See <https://luna.gitlab.io/discord-unofficial-docs/relationships.html#get-users-peer-id-relationships>
/// See <https://luna.gitlab.io/discord-unofficial-docs/docs/relationships.html#get-userspeer_idrelationships>
pub async fn get_mutual_relationships(
&mut self,
user_id: Snowflake,
@ -41,7 +41,7 @@ impl ChorusUser {
/// Retrieves the user's relationships.
///
/// # Reference
/// See <https://luna.gitlab.io/discord-unofficial-docs/relationships.html#get-users-me-relationships>
/// See <https://luna.gitlab.io/discord-unofficial-docs/docs/relationships.html#get-usersmerelationships>
pub async fn get_relationships(&mut self) -> ChorusResult<Vec<types::Relationship>> {
let url = format!(
"{}/users/@me/relationships",
@ -59,7 +59,7 @@ impl ChorusUser {
/// Sends a friend request to a user.
///
/// # Reference
/// See <https://luna.gitlab.io/discord-unofficial-docs/relationships.html#post-users-me-relationships>
/// See <https://luna.gitlab.io/discord-unofficial-docs/docs/relationships.html#post-usersmerelationships>
pub async fn send_friend_request(
&mut self,
schema: FriendRequestSendSchema,
@ -136,7 +136,7 @@ impl ChorusUser {
/// Removes the relationship between the authenticated user and a given user.
///
/// # Reference
/// See <https://luna.gitlab.io/discord-unofficial-docs/relationships.html#delete-users-me-relationships-peer-id>
/// See <https://luna.gitlab.io/discord-unofficial-docs/docs/relationships.html#delete-usersmerelationshipspeer_id>
pub async fn remove_relationship(&mut self, user_id: Snowflake) -> ChorusResult<()> {
let url = format!(
"{}/users/@me/relationships/{}",

View File

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

View File

@ -17,7 +17,7 @@ use super::WebSocketEvent;
/// Sent by the official client when switching to a guild or channel;
/// After this, you should receive message updates
///
/// See <https://luna.gitlab.io/discord-unofficial-docs/lazy_guilds.html#op-14-lazy-request>
/// See <https://luna.gitlab.io/discord-unofficial-docs/docs/lazy_guilds#op-14-lazy-request>
///
/// {"op":14,"d":{"guild_id":"848582562217590824","typing":true,"activities":true,"threads":true}}
pub struct LazyRequest {