```js
const { Client, Intents } = require('discord.js');

const client = new Client({
  intents: [Intents.FLAGS.GUILDS]
});

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('interactionCreate', async interaction => {
  if (!interaction.isCommand()) return;

  if (interaction.commandName === 'ban') {
    // Ban the user
    const user = interaction.options.getUser('user');
    await interaction.guild.members.ban(user);

    // Inform about successful ban
    interaction.reply(`${user.username} has been banned.`);
  }
});

client.login('your-token-here');

```
```js const { ลูกค้า, เจตนา } = ต้องการ ('discord.js'); ลูกค้า const = ลูกค้าใหม่ ({ เจตนา: [Intents.FLAGS.GUILDS] }); client.on('ready', () => { console.log(`เข้าสู่ระบบด้วย ${client.user.tag}!`); }); client.on('interactionCreate', async Interaction => { if (!interaction.isCommand()) return; if (interaction.commandName === 'ban') { // แบนผู้ใช้ const user = allowance.options.getUser ('user'); await allowance.guild.members.ban(user); // แจ้งเกี่ยวกับการแบนการโต้ตอบ.reply(`${user.username} ถูกแบน.`); } }); client.login('โทเค็นของคุณที่นี่'); ```
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence