[EssentialsDiscord] Add a getMember() method #5033
Answered
by
JRoy
HyperCodec
asked this question in
Ideas and Feature Suggestions
-
There should be a way to get members in the server other than just using an event. Here are some ideas: DiscordUtil.getMember(long id) // getId() should also return a long, as the id is a number
DiscordUtil.getMember(String name)
// Could also be in a different class such as DiscordService. This is just an idea, so feel free to put it wherever you see fit |
Beta Was this translation helpful? Give feedback.
Answered by
JRoy
Feb 21, 2023
Replies: 2 comments 5 replies
-
In what way? As mentioned in #5032, EssentialsDiscord is not a general purpose API for Discord. You should be able to get members through any Discord wrapper of your choice (the EssentialsDiscord bot uses JDA, but this is an implementation detail). |
Beta Was this translation helpful? Give feedback.
5 replies
-
DiscordService#getMemberById now exists. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JRoy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DiscordService#getMemberById now exists.