Package net.bonn2.modules.logging
Class Logging
java.lang.Object
net.bonn2.modules.Module
net.bonn2.modules.logging.Logging
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.dv8tion.jda.api.interactions.commands.build.CommandData[]voidload()static voidlog(String channel, net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.utils.messages.MessageCreateData message) Log a message to a configured channel to a specific guildstatic voidLog a message to a configured channel in all guilds that the bot is in.static voidRegister a logging channel to the loggervoidvoidMethods inherited from class net.bonn2.modules.Module
getAuthor, getDepends, getDescription, getName, getVersion
-
Constructor Details
-
Logging
public Logging()
-
-
Method Details
-
register
Register a logging channel to the logger- Parameters:
module- The module requesting the registrationchannel- The name of the channel
-
log
public static void log(String channel, net.dv8tion.jda.api.entities.Guild guild, net.dv8tion.jda.api.utils.messages.MessageCreateData message) Log a message to a configured channel to a specific guild- Parameters:
channel- The registered channelguild- The guild to send the message tomessage- The message to send
-
log
public static void log(String channel, net.dv8tion.jda.api.utils.messages.MessageCreateData message) Log a message to a configured channel in all guilds that the bot is in.- Parameters:
channel- The registered channelmessage- The message to send
-
registerLoggingChannels
public void registerLoggingChannels()- Specified by:
registerLoggingChannelsin classModule
-
registerSettings
public void registerSettings()- Specified by:
registerSettingsin classModule
-
load
public void load() -
getCommands
public net.dv8tion.jda.api.interactions.commands.build.CommandData[] getCommands()- Specified by:
getCommandsin classModule
-