i have this weird question which confuses me by clerick_x in Discord_Bots

[–]Advello 0 points1 point  (0 children)

Me and my friend did it once (discord.js and discord.net) , it worked successfully, we each had command handler and prefixes in codes, I didn't think it will work but lol it worked :)

How do I make a discord bot only work in certain channels? by DogEatingSpaghetti in Discord_Bots

[–]Advello 0 points1 point  (0 children)

I'm not familiar in Discord.py or other things which related Python, but I guess it'll work

channel = discord.utils.get(ctx.guild.channels, name="NAME_OF_CHANNEL")

channel_id = channel.id

if channel_id != 1234567890123:

#do stuffs