diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-09-07 21:33:37 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-09-07 21:33:37 -0400 |
commit | ed98ff7e2679f362f2657e77a6cf8dd3ce9b3d43 (patch) | |
tree | 75a6ba3cf992c1d563ddb8042d4cd9b4278207b8 /src/listeners/interaction/interactionCreate.ts | |
parent | 15b6988ccffc0a21a570bee7fcb8aabe6ffe08c7 (diff) | |
download | tanzanite-master.tar.gz tanzanite-master.tar.bz2 tanzanite-master.zip |
Diffstat (limited to 'src/listeners/interaction/interactionCreate.ts')
-rw-r--r-- | src/listeners/interaction/interactionCreate.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/listeners/interaction/interactionCreate.ts b/src/listeners/interaction/interactionCreate.ts index c4c14c1..ced359c 100644 --- a/src/listeners/interaction/interactionCreate.ts +++ b/src/listeners/interaction/interactionCreate.ts @@ -3,9 +3,9 @@ import { Emitter, emojis, format, + formatList, handleAutomodInteraction, - oxford, - surroundArray, + surroundEach, type BotClientEvents } from '#lib'; import { Events, InteractionType } from 'discord.js'; @@ -68,7 +68,7 @@ export default class InteractionCreateListener extends BotListener { return await interaction.reply({ content: `You selected ${ Array.isArray(interaction.values) - ? oxford(surroundArray(interaction.values, '`'), 'and', '') + ? formatList(surroundEach(interaction.values, '`'), 'and') : format.input(interaction.values) }.`, ephemeral: true |