diff --git a/src/commands/capacity.ts b/src/commands/capacity.ts index 6a47dc3..d6bb5d3 100644 --- a/src/commands/capacity.ts +++ b/src/commands/capacity.ts @@ -23,7 +23,7 @@ export const Capacity: SlashCommand = { if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return // set state of bot chat features - openConfig(`${interaction.client.user.username}-config.json`, interaction.commandName, interaction.options.get('context-capacity')?.value) + openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('context-capacity')?.value) interaction.reply({ content: `Message History Capacity has been set to \`${interaction.options.get('context-capacity')?.value}\``, diff --git a/src/commands/messageStream.ts b/src/commands/messageStream.ts index ab56b3f..254dd2e 100644 --- a/src/commands/messageStream.ts +++ b/src/commands/messageStream.ts @@ -23,7 +23,7 @@ export const MessageStream: SlashCommand = { if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return // save value to json and write to it - openConfig(`${interaction.client.user.username}-config.json`, interaction.commandName, interaction.options.get('stream')?.value) + openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('stream')?.value) interaction.reply({ content: `Message streaming preferences set to: \`${interaction.options.get('stream')?.value}\``, diff --git a/src/commands/messageStyle.ts b/src/commands/messageStyle.ts index ae7a1c7..7833fb6 100644 --- a/src/commands/messageStyle.ts +++ b/src/commands/messageStyle.ts @@ -23,7 +23,7 @@ export const MessageStyle: SlashCommand = { if (!channel || channel.type !== (ChannelType.PublicThread && ChannelType.GuildText)) return // set the message style - openConfig(`${interaction.client.user.username}-config.json`, interaction.commandName, interaction.options.get('embed')?.value) + openConfig(`${interaction.user.username}-config.json`, interaction.commandName, interaction.options.get('embed')?.value) interaction.reply({ content: `Message style preferences for embed set to: \`${interaction.options.get('embed')?.value}\``,