diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-30 11:09:36 -0400 |
commit | fb73d1b421638ea695eeafeee2215a1e923c4d4a (patch) | |
tree | 57c631f590478014f9ba1739a0d0c19ec05df09d /src/lib | |
parent | 48661511dd485957506e7900c8e86916aa3ea3af (diff) | |
download | tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.gz tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.tar.bz2 tanzanite-fb73d1b421638ea695eeafeee2215a1e923c4d4a.zip |
leaderboard command and some fixes
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 5 | ||||
-rw-r--r-- | src/lib/models/Guild.ts | 18 |
2 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 4d565e4..9a5a07f 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -673,7 +673,8 @@ export class BushClientUtil extends ClientUtil { message: BushMessage | BushSlashMessage, embeds: MessageEmbed[], text: string | null = null, - deleteOnExit?: boolean + deleteOnExit?: boolean, + startOn?: number ): Promise<void> { const paginateEmojis = this.#paginateEmojis; if (deleteOnExit === undefined) deleteOnExit = true; @@ -687,7 +688,7 @@ export class BushClientUtil extends ClientUtil { }); const style = Constants.MessageButtonStyles.PRIMARY; - let curPage = 0; + let curPage = startOn ? startOn - 1 : undefined ?? 0; if (typeof embeds !== 'object') throw new Error('embeds must be an object'); const msg = (await message.util.reply({ // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing diff --git a/src/lib/models/Guild.ts b/src/lib/models/Guild.ts index 4a5ede4..1974725 100644 --- a/src/lib/models/Guild.ts +++ b/src/lib/models/Guild.ts @@ -41,49 +41,49 @@ export interface GuildModelCreationAttributes { export const guildSettingsObj = { prefix: { name: 'Prefix', - description: 'description goes here', + description: 'The phrase required to trigger text commands in this server.', type: 'string', configurable: true }, autoPublishChannels: { name: 'Auto Publish Channels', - description: 'description goes here', + description: 'Channels were every message is automatically published.', type: 'channel-array', configurable: true }, welcomeChannel: { name: 'Welcome Channel', - description: 'description goes here', - type: 'channel-array', + description: 'The channel where the bot will send join and leave message.', + type: 'channel', configurable: true }, muteRole: { name: 'Mute Role', - description: 'description goes here', + description: 'The role assigned when muting someone.', type: 'role', configurable: true }, punishmentEnding: { name: 'Punishment Ending', - description: 'description goes here', + description: 'The message after punishment information to a user in a dm.', type: 'string', configurable: true }, lockdownChannels: { name: 'Lockdown Channels', - description: 'description goes here', + description: 'Channels that are locked down when a mass lockdown is specified.', type: 'channel-array', configurable: false // not implemented yet }, joinRoles: { name: 'Join Roles', - description: 'description goes here', + description: 'Roles assigned to users on join who do not have sticky role information.', type: 'role-array', configurable: true }, automodLogChannel: { name: 'Automod Log Channel', - description: 'description goes here', + description: 'The channel where all automod information is sent.', type: 'channel', configurable: true } |