You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { createCommandConfig, logger } from 'robo.js'
import type { ChatInputCommandInteraction } from 'discord.js'
export const config = createCommandConfig({
description: `Clear user's chats`
} as const)
/**
* Clear all tested messages
*/
export default async (interaction: ChatInputCommandInteraction) => {
const channel = await interaction.channel
const messages = await channel.messages
// @TODO Bug This would cause Interaction has already been acknowledged when the following line is uncommented
// const userMessages = await messages.fetch()
interaction.reply(`${interaction.user} has cleared the messages`)
}
Can someone give me a shine on this bug?
The text was updated successfully, but these errors were encountered:
/src/commands/clear.ts
Can someone give me a shine on this bug?
The text was updated successfully, but these errors were encountered: