discord-jda / JDA

Java wrapper for the popular chat & VOIP service: Discord https://discord.com
Apache License 2.0
4.28k stars 738 forks source link

Can't set name #624

Closed Squidkingdom closed 6 years ago

Squidkingdom commented 6 years ago

I keep trying to call Application.getManager().setName(""); but I get a static reference error. I'm not very familiar with the LIB and I can't get it answered anywhere else. Thanks, Squid

WalshyDev commented 6 years ago

There may be another way for this but from what I can tell you cannot get the ApplicationManager from the Bot itself, it has to be from a Client. api.asClient().getApplicationById("").complete().getManager().setName("name");

Also please note: The github issue tracker is reserved for feature requests and bug reports. Go to discord.gg/0hMr4ce0tIl3SLv5 (JDA Discord) to receive the needed help.

Squidkingdom commented 6 years ago

how do I get the Id?

WalshyDev commented 6 years ago

For the Application? Should be the bot ID (Unless it's a really old one but that's unlikely). Again though, use the Discord not here ;)

Squidkingdom commented 6 years ago

Yep! Already joined