1 |
import { BanOptions, CommandInteraction, EmojiIdentifierResolvable, GuildMember, Interaction, InteractionCollector, Message, MessageActionRow, MessageButton, MessageOptions, ReplyOptions, TextChannel, User } from 'discord.js'; |
import { CommandInteraction, Interaction, InteractionCollector, Message, MessageActionRow, MessageButton, User } from 'discord.js'; |
2 |
import BaseCommand from '../../utils/structures/BaseCommand'; |
import BaseCommand from '../../utils/structures/BaseCommand'; |
3 |
import DiscordClient from '../../client/Client'; |
import DiscordClient from '../../client/Client'; |
4 |
import CommandOptions from '../../types/CommandOptions'; |
import CommandOptions from '../../types/CommandOptions'; |
24 |
}).skip(offset).limit(limit).sort("createdAt"); |
}).skip(offset).limit(limit).sort("createdAt"); |
25 |
|
|
26 |
let str = ''; |
let str = ''; |
27 |
const maxPage = Math.ceil(notes.length / limit); |
|
28 |
|
const maxPage = Math.ceil((await Note.count({ |
29 |
|
guild_id: msg.guild!.id, |
30 |
|
user_id: user.id, |
31 |
|
})) / limit); |
32 |
|
|
33 |
for await (const note of notes) { |
for await (const note of notes) { |
34 |
str += `**Note ID**: ${note.id}\n`; |
str += `**Note ID**: ${note.id}\n`; |