From 8f97cd9fffba7e109a66f340172bb3a38f71e9df Mon Sep 17 00:00:00 2001 From: Mara Date: Fri, 12 Jul 2024 13:36:20 +0200 Subject: [PATCH] update commands --- .../current/Usage/model.mdx | 21 +++++++++++++++++-- .../current/admin/edit.md | 14 +++++++++++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/en/docusaurus-plugin-content-docs/current/Usage/model.mdx b/en/docusaurus-plugin-content-docs/current/Usage/model.mdx index de4dcfb..6cd9b84 100644 --- a/en/docusaurus-plugin-content-docs/current/Usage/model.mdx +++ b/en/docusaurus-plugin-content-docs/current/Usage/model.mdx @@ -51,7 +51,7 @@ The `dbd` command allows rolling a registered die. ## Others -The following two commands accept : +The following three commands accept : - `(@player)` : The player's name - `(*character)` : And/or the character's name @@ -68,7 +68,7 @@ The `display` command allows you to view the statistics and dice of a character ### Graph (`/graph`) :::usage -**`/graph (@joueur) (*personnage) (ligne) (fond) (min) (max)`** +**`/graph (@player) (*character) (line) (bg) (min) (max)`** ::: The `/graph` command is a "gimmick" feature that generates a graph from a character's statistics. @@ -88,3 +88,20 @@ By default: - If neither of the two previous options is available, it will be based on the die value (for example, if `1d20`, the value will be 20). - As a last resort, it will be automatically calculated based on the user's statistics. ![graph](/assets/graph.jpg) + +### Edit avatar (`/edit_avatar`) +:::usage +**`/edit_avatar [url] (@player) (*character)`** +::: + +The `edit_avatar` command lets you modify the image of a character stored in the database. +This will change the embedding of the character sheet. + +By default, the command will modify the image of the person who used it. Only moderators can modify the image of another player. + +:::warning +Images stored on Discord cannot be used as their links change regularly. It is therefore mandatory to use external links, for example, by using [imgur](https://imgur.com/). +[See here for more information](https://www.bleepingcomputer.com/news/security/discord-will-switch-to-temporary-file-links-to-block-malware-delivery/). +::: + +If the embed doesn't have the `[MODIFY IMAGE]` button, the button will be automatically added by the command. diff --git a/en/docusaurus-plugin-content-docs/current/admin/edit.md b/en/docusaurus-plugin-content-docs/current/admin/edit.md index 81a5929..de06a26 100644 --- a/en/docusaurus-plugin-content-docs/current/admin/edit.md +++ b/en/docusaurus-plugin-content-docs/current/admin/edit.md @@ -10,10 +10,24 @@ Once the user is validated, their character sheet will be automatically publishe Only the template and the user will always be present, unless no die type and no critical success/failure have been recorded in the template. If all information is saved, you will have access to three buttons: +- Edit avatar (embed thumbnail) - Edit Statistics - Edit Saved Dice (which allows saving multiple new dice, but shh...) - Add a New Die. +## Editing the avatar image + +![edit avatar](/assets/edit/edit_avatar.png) + +:::warning +Images stored on Discord cannot be used as their links change regularly. It is therefore mandatory to use external links, for example, by using [imgur](https://imgur.com/). +[See here for more information](https://www.bleepingcomputer.com/news/security/discord-will-switch-to-temporary-file-links-to-block-malware-delivery/). +::: + +If you're using an older version of the files, you can modify the image with the command [`/edit_avatar`](../Usage/model.mdx#edit-avatar-edit_avatar). + +### Edit avatar (`/edit_avatar`) + ## Editing Statistics ![edit stats](/assets/edit/edit_stats.png)