File tree Expand file tree Collapse file tree
bots/discord/src/commands/utilities Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { EmbedBuilder , MessageFlags } from 'discord.js'
2- import { eq , or } from 'drizzle-orm'
2+ import { eq , or } from 'drizzle-orm'
33import Command from '$/classes/Command'
44import { config , database } from '$/context'
55import { reminders } from '$/database/schemas'
@@ -42,13 +42,19 @@ export default new Command({
4242 }
4343
4444 const reminderList = userReminders
45- . map ( r => {
46- const targetStr = r . targetId === r . creatorId ? 'yourself' : `<@${ r . targetId } >`
47- return (
45+ . map (
46+ r =>
4847 `**${ r . id } .** ${ r . message . substring ( 0 , 50 ) } ${ r . message . length > 50 ? '...' : '' } \n` +
49- `-# For ${ targetStr } • <t:${ r . remindAt } :R> • Reminded ${ r . count } x`
50- )
51- } )
48+ [
49+ `For ${ r . targetId === targetId ? 'yourself' : `<@${ r . targetId } >` } ` ,
50+ r . creatorId !== targetId && `Set by <@${ r . creatorId } >` ,
51+ `<t:${ r . remindAt } :R>` ,
52+ `Reminded ${ r . count } times` ,
53+ ]
54+ . filter ( Boolean )
55+ . join ( ' • ' ) ,
56+ )
57+
5258 . join ( '\n\n' )
5359
5460 const embed = applyCommonEmbedStyles (
You can’t perform that action at this time.
0 commit comments