#discord allow specific channel
1 messages ยท Page 1 of 1 (latest)
Based on the Discord docs, here's your config:
{
channels: {
discord: {
enabled: true,
token: "YOUR_BOT_TOKEN",
dm: { enabled: false }, // disable DMs entirely
guilds: {
"YOUR_GUILD_ID": { // replace with your server ID
users: ["YOUR_SPECIFIC_USER_ID"], // only this user can interact
requireMention: true, // must @mention the bot to get a reply
channels: {
"CHANNEL_ID_1": { allow: true },
"CHANNEL_ID_2": { allow: true }
}
}
}
}
}
}
Replace these values:
YOUR_BOT_TOKENโ your Discord bot tokenYOUR_GUILD_IDโ server ID (right-click server โ Copy Server ID)CHANNEL_ID_1andCHANNEL_ID_2โ the two channel IDs you wantYOUR_SPECIFIC_USER_IDโ the one user who can interact
Key behaviors:
- Bot only replies in the 2 listed channels