问题
I am very curious because I have seen other bots do this, the food bot command would be: "!Order" and then it would send another embed to a different server and a specific channel. How do I code that?
回答1:
You can get a guild and then get a channel from the guild.
client.guilds.get(<guild id>).channels.get(<channel id>).send(<message>)
Notice this requires the bot to be in both guilds
来源:https://stackoverflow.com/questions/51112006/how-to-send-a-message-to-a-different-server-discord-bot