Parent Directory
|
Revision Log
|
Patch
revision 335 by rakin, Mon Jul 29 17:29:36 2024 UTC | revision 336 by rakin, Mon Jul 29 17:29:36 2024 UTC | |
---|---|---|
# | Line 24 export default class NotesCommand extend | Line 24 export default class NotesCommand extend |
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`; |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |