mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
Implement full roll alias system with support for yVars, currently untested. Additionally: made numbers in code more readable, change indentation to spaces in db init files, fix simulatedNominal system defaults to be config driven
This commit is contained in:
21
src/embeds/alias.ts
Normal file
21
src/embeds/alias.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { CreateMessage } from '@discordeno';
|
||||
|
||||
import config from '~config';
|
||||
|
||||
import { failColor } from 'embeds/colors.ts';
|
||||
|
||||
export const generateAliasError = (customMessage: string, customId: string): CreateMessage => ({
|
||||
embeds: [
|
||||
{
|
||||
color: failColor,
|
||||
title: 'Something went wrong!',
|
||||
description: `The Alias System has encountered an error:
|
||||
- ${customMessage}
|
||||
|
||||
Please try again. If this continues to happen, please \`${config.prefix}report\` the error code to the developer.`,
|
||||
footer: {
|
||||
text: `Error Code: ${customId}`,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user