© 2026 Hedgehog Software, LLC
manual
Modlog
export class Modlog { // code public async createMute(data: MuteCreateInput) { const mute = await container.db.mute.create({ data: { expiresAt: data.expiresAt, memberId: this.memberId, removedRoles: data.removedRoles ? data.removedRoles : [], modlog: { create: await this.createModlog() } } }); if (data.expiresAt) { const offset = data.expiresAt.getTime() - Date.now(); console.log(offset); container.tasks.create('UnmuteMemberTask', { muteId: mute.id }, offset); } await this.sendModlog(mute.modlogId); return this; } // code }
"@sapphire/plugin-scheduled-tasks": "^8.0.0"
"@sapphire/framework": "^4.5.1"