RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.net.discord.Discord Class Reference
Collaboration diagram for com.osroyale.net.discord.Discord:

Static Public Member Functions

static void start ()

Static Public Attributes

static DiscordClient client
static Stopwatch stopwatch = Stopwatch.start()

Detailed Description

Handles creating a connection to the OS Royale community discord channel.

!!! - > Better way of handling the community and administration message instance. When creating the channel instance by using client.getChannelById(long) the channel is always null. I am "cheap haxing" it by initializing the channel in the onMessage event. Problem with this is if you start the server from fresh the Discord bot will not be able to send outgoing messages (message) until someone Has triggered the discord event.

Author
Daniel

Definition at line 59 of file Discord.java.

Member Function Documentation

◆ start()

void com.osroyale.net.discord.Discord.start ( )
inlinestatic

Handles starting the discord bot.

Definition at line 86 of file Discord.java.

Member Data Documentation

◆ client

DiscordClient com.osroyale.net.discord.Discord.client
static

The discord client.

Definition at line 69 of file Discord.java.

◆ stopwatch

Stopwatch com.osroyale.net.discord.Discord.stopwatch = Stopwatch.start()
static

The discord stopwatch (prevent spamming).

Definition at line 81 of file Discord.java.


The documentation for this class was generated from the following file: