1package com.osroyale.net.discord;
4import com.osroyale.Config;
5import com.osroyale.game.world.WorldType;
6import com.osroyale.util.Stopwatch;
7import discord4j.common.util.Snowflake;
8import discord4j.core.DiscordClient;
9import discord4j.core.GatewayDiscordClient;
10import discord4j.core.event.domain.message.MessageCreateEvent;
11import discord4j.core.object.entity.channel.Channel;
13import java.util.Objects;
64 static final Snowflake COMMUNITY_CHANNEL = Snowflake.of(0L);
71 public static GatewayDiscordClient gateway;
76 static Channel communityChannel;
89 gateway = Objects.requireNonNull(
client.login().block());
91 communityChannel = gateway.getChannelById(
Discord.COMMUNITY_CHANNEL).block();
95 public static void message(
final String message) {
97 communityChannel.getRestChannel().createMessage(message).block();
static final String DISCORD_TOKEN
static Stopwatch stopwatch
static DiscordClient client