Made the test notification not show in chat
This commit is contained in:
parent
2053b7f508
commit
03540b430c
1 changed files with 2 additions and 2 deletions
|
@ -208,8 +208,8 @@ public class DiscordPlugin extends JavaPlugin implements IListener<ReadyEvent> {
|
||||||
e2.printStackTrace();
|
e2.printStackTrace();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return channel
|
return channel.sendMessage(Test && channel != chatchannel
|
||||||
.sendMessage(Test ? "*The following message is from a test server*\n" + message : message);
|
? "*The following message is from a test server*\n" + message : message);
|
||||||
} catch (RateLimitException e) {
|
} catch (RateLimitException e) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(e.getRetryDelay());
|
Thread.sleep(e.getRetryDelay());
|
||||||
|
|
Loading…
Reference in a new issue