mirror of
https://github.com/kevinthedang/discord-ollama.git
synced 2025-12-14 04:16:07 -05:00
Channel/Thread Chat Toggle (#75)
* Add: Some Commands work in GuildText * Add: Channel Toggle Command * Add: Channel History handler by user * Update: version increment * Update: Testing scope * Update: env sample * Update: Readme goal checks * Update: builds run on PR to validate them
This commit is contained in:
@@ -20,7 +20,7 @@ export const Capacity: SlashCommand = {
|
||||
run: async (client: Client, interaction: CommandInteraction) => {
|
||||
// fetch channel and message
|
||||
const channel = await client.channels.fetch(interaction.channelId)
|
||||
if (!channel || channel.type !== ChannelType.PublicThread) return
|
||||
if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return
|
||||
|
||||
// set state of bot chat features
|
||||
openConfig('config.json', interaction.commandName, interaction.options.get('context-capacity')?.value)
|
||||
|
||||
Reference in New Issue
Block a user