User vs Server Preferences (#80)

* Update: Server vs User prefs

* Add: User vs Server Prefs

* Update: version increment

* Fix: src and tests added to validation range
This commit is contained in:
Kevin Dang
2024-07-04 13:54:25 -07:00
committed by GitHub
parent 7f1326f93e
commit 35b9ad71cb
12 changed files with 130 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ export const ChannelToggle: SlashCommand = {
// set state of bot channel preferences
openConfig('config.json', interaction.commandName, interaction.options.get('toggle-channel')?.value)
openConfig(`${interaction.guildId}-config.json`, interaction.commandName, interaction.options.get('toggle-channel')?.value)
interaction.reply({
content: `Channel Preferences have for Regular Channels set to \`${interaction.options.get('toggle-channel')?.value}\``,