Set channel id for DiscordBot for multiple servers
问题 Could someone help me set command to set channel for specific server so that it does not interfere with each other? Actually I have this: var testChannel = bot.channels.find(channel => channel.id === "hereMyChannelID"); I want to set command which Owner can use to set channel id for his server. 回答1: You can accomplish this task by creating a JSON file to hold the specified channels of each guild. Then, in your command, simply define the channel in the JSON. After that, anywhere else in your