@@ -47,8 +47,6 @@ public ReadyListener(Skoice plugin) {
47
47
@ Override
48
48
public void onReady (ReadyEvent event ) {
49
49
50
- this .setDefaultFailure ();
51
-
52
50
Player tokenManager = this .plugin .getBot ().getTokenManager ();
53
51
54
52
this .plugin .getBot ().getJDA ().retrieveApplicationInfo ().queue (applicationInfo -> {
@@ -64,6 +62,8 @@ public void onReady(ReadyEvent event) {
64
62
65
63
this .setup (tokenManager );
66
64
});
65
+
66
+ this .setDefaultFailure ();
67
67
}
68
68
69
69
private void setDefaultFailure () {
@@ -122,10 +122,7 @@ private void setup(Player tokenManager) {
122
122
123
123
this .plugin .getBot ().setDefaultAvatar ();
124
124
this .plugin .getBot ().updateGuild ();
125
- this .plugin .getBot ().getVoiceChannel ().setStatus ();
126
- this .plugin .getBot ().getVoiceChannel ().updatePermissions ();
127
125
this .plugin .getBot ().retrieveMutedUsers ();
128
- this .plugin .getBot ().updateVoiceState ();
129
126
this .plugin .getBot ().getMenuFactory ().loadAll (this .plugin );
130
127
131
128
this .plugin .getBot ().getJDA ().getGuilds ().forEach (guild -> {
@@ -141,6 +138,9 @@ private void setup(Player tokenManager) {
141
138
this .plugin .getListenerManager ().registerPermanentBotListeners ();
142
139
this .plugin .getListenerManager ().update ();
143
140
141
+ this .plugin .getBot ().getVoiceChannel ().setStatus ();
142
+ this .plugin .getBot ().getVoiceChannel ().updatePermissions ();
143
+ this .plugin .getBot ().updateVoiceState ();
144
144
this .plugin .getBot ().retrieveProximityChannels ();
145
145
146
146
if (tokenManager == null ) {
0 commit comments