For example if I add my bot to server 1 and server 2, how can I do something on server 2 when a certain event happens on server 1? Is that even possible?
I don't have any code yet, I just wanna know if this is even possible with the Discord Java API (JDA).
Yes, it is possible.
JDA
object, let's call it jda ( public JDA jda
).@Override (...)onEmoteAdded() {(your code goes here)}
, you can have a piece of code that manipulates another server such as jda.getGuildById(id).queue()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.