#discord allow specific channel

1 messages ยท Page 1 of 1 (latest)

vast rune
#

"channels": {
"discord": {
insert code here
}
},

just give me a working config for discord channel working example where the bot only answer in 2 specific channel from the same specific discord. + the bot can only answer/interact with 1 specific discord member

knotty scaffoldBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

soft idolBOT
# vast rune "channels": { "discord": { insert code here } }, just give me a...

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 token
  • YOUR_GUILD_ID โ€” server ID (right-click server โ†’ Copy Server ID)
  • CHANNEL_ID_1 and CHANNEL_ID_2 โ€” the two channel IDs you want
  • YOUR_SPECIFIC_USER_ID โ€” the one user who can interact

Key behaviors:

  • Bot only replies in the 2 listed channels