Clear User Channel History Command (#88)

* Add: Clear user channel message history command

* Update: Checks if messages are empty and has clearer replies

* Fix: Issue where duplication happens on channel-toggle true in threads

* Update: version increment

* Fix: Missing test case for commands.test.ts

* Readability fix

---------

Co-authored-by: Jonathan Smoley <67881240+JT2M0L3Y@users.noreply.github.com>
This commit is contained in:
Kevin Dang
2024-07-25 14:26:50 -07:00
committed by GitHub
parent e60c2f88b8
commit 352d88ee9d
8 changed files with 99 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ import { Shutoff } from './shutoff.js'
import { Capacity } from './capacity.js'
import { PrivateThreadCreate } from './threadPrivateCreate.js'
import { ChannelToggle } from './channelToggle.js'
import { ClearUserChannelHistory } from './cleanUserChannelHistory.js'
export default [
ThreadCreate,
@@ -16,5 +17,6 @@ export default [
Disable,
Shutoff,
Capacity,
ChannelToggle
ChannelToggle,
ClearUserChannelHistory
] as SlashCommand[]