1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

add roll alias docs

This commit is contained in:
Ean Milligan
2025-07-13 05:35:37 -04:00
parent 660f9e9bc2
commit 60f996b0a9
4 changed files with 40 additions and 1 deletions

View File

@@ -90,6 +90,11 @@ export const help = (message: DiscordenoMessage) => {
value: `Controls whether or not inline rolls can be done in a guild, run \`${config.prefix}inline help\` for more details`,
inline: true,
},
{
name: `\`${config.prefix}rollalias [subcommand]\` or \`${config.prefix}ra [subcommand]\``,
value: `Custom Roll Alias System, run \`${config.prefix}ra help\` for more details`,
inline: true,
},
{
name: `\`${config.prefix}xdydzracsq!${config.postfix}\` ...`,
value:

View File

@@ -37,7 +37,7 @@ const makeHelpEmbed = (helpDict: HelpContents | HelpPage, parentTitle?: string):
name: `Roll Command Help${parentTitle ? ' - ' : ''}${parentTitle}`,
},
title: helpDict.name,
description: helpDict.description,
description: helpDict.description.replaceAll('[[', config.prefix).replaceAll(']]', config.postfix),
fields: !helpDict.isPage && helpDict.example
? [
{

View File

@@ -99,6 +99,7 @@ When in Multi Sub-Roll mode, the group options are applied to the results of eac
This message must contain multiple roll commands in it (such as \`[[d4]] [[d8]]\`). Nested dice rolls are not able to be used as a variable, but can use variables inside them.
Variables are numbered from \`x0\` to \`xN\`, where \`N\` equals two less than the total number of roll commands in the message. You can add the "Number Variables" flag (\`-nv\`) to your command to see what will be assigned to each roll command.
When using the Roll Alias System (\`[[ra help\` for details), \`y\` variables are available, numbered from \`y0\` to \`yN\`, where \`N\` is the max desired variable. These will be required when using a Roll Alias, and should be specified by the user like this: \`[[ra aliasName 0 1 2\`.
**Notes about this example:**
- The example below starts with \`[[0]]\` so that it is a valid roll command. See the \`Miscellaneous Features>User Formatting\` help page for more details.