mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 00:53:50 -04:00
comments
This commit is contained in:
2
mod.ts
2
mod.ts
@@ -23,7 +23,7 @@ import utils from 'utils/utils.ts';
|
|||||||
|
|
||||||
// Extend the BigInt prototype to support JSON.stringify
|
// Extend the BigInt prototype to support JSON.stringify
|
||||||
interface BigIntX extends BigInt {
|
interface BigIntX extends BigInt {
|
||||||
/** Convert to BigInt to string form in JSON.stringify */
|
// Convert to BigInt to string form in JSON.stringify
|
||||||
toJSON: () => string;
|
toJSON: () => string;
|
||||||
}
|
}
|
||||||
(BigInt.prototype as BigIntX).toJSON = function () {
|
(BigInt.prototype as BigIntX).toJSON = function () {
|
||||||
|
|||||||
@@ -60,6 +60,8 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
|
|||||||
}
|
}
|
||||||
|
|
||||||
let rollCmd = message.content.startsWith(`${config.prefix}r`) ? args.join(' ') : message.content;
|
let rollCmd = message.content.startsWith(`${config.prefix}r`) ? args.join(' ') : message.content;
|
||||||
|
|
||||||
|
// Try to ensure the roll is wrapped
|
||||||
if (!rollCmd.includes(config.prefix)) {
|
if (!rollCmd.includes(config.prefix)) {
|
||||||
rollCmd = `${config.prefix}${rollCmd}`;
|
rollCmd = `${config.prefix}${rollCmd}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user