aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts5
-rw-r--r--src/lib/models/Guild.ts18
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
}