Chat history is logged and held by the bot via .json, but what if the user wanted to clear their conversation history within the channel? There is no way of doing it.
Threads can just be deleted to have a new conversation, that is not the same to GuildText channels.
Solution
Implement a slash command that will take a current: channel and username via tag and remove their messages for that channel. Basically setting the messages list to [].
Refer below for a sample .json file for a channel.
Issue
.json
, but what if the user wanted to clear their conversation history within the channel? There is no way of doing it.GuildText
channels.Solution
channel
andusername
via tag and remove their messages for that channel. Basically setting themessages
list to[]
..json
file for a channel.