Skip to content

Commit

Permalink
fix: self destruct cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Jun 13, 2024
1 parent c5fb80f commit 31e1d39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/bot/admin/cleanup-self-destruct-messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ async function cleanup(guild: TDiscord.Guild) {
}

export async function setup(client: TDiscord.Client) {
client.on('ready', () => {
void cleanupGuildOnInterval(client, guild => cleanup(guild), 5000)
})
void cleanupGuildOnInterval(client, guild => cleanup(guild), 5000)
}

0 comments on commit 31e1d39

Please sign in to comment.