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:
@@ -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}\``,
|
||||
|
||||
Reference in New Issue
Block a user