Don't set the type manually in DiscordRPC.kt

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-03-26 11:41:52 +01:00
parent 904c0ac831
commit b8663dd342
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 2 deletions

View File

@ -1,13 +1,12 @@
package fr.username404.snowygui.gui.feature package fr.username404.snowygui.gui.feature
import fr.username404.snowygui.Snowy import fr.username404.snowygui.Snowy
import fr.username404.snowygui.gui.feature.ButtonInfo.Companion.Type
import net.arikia.dev.drpc.DiscordEventHandlers import net.arikia.dev.drpc.DiscordEventHandlers
import net.arikia.dev.drpc.DiscordRichPresence import net.arikia.dev.drpc.DiscordRichPresence
import net.minecraft.client.Minecraft import net.minecraft.client.Minecraft
import net.arikia.dev.drpc.DiscordRPC as discord_rpc import net.arikia.dev.drpc.DiscordRPC as discord_rpc
@ButtonInfo(Category.MISC, kind = Type.TOGGLE) @ButtonInfo(Category.MISC)
object DiscordRPC: ButtonImpl() { object DiscordRPC: ButtonImpl() {
private val RPCHandlers: DiscordEventHandlers = DiscordEventHandlers.Builder().build() private val RPCHandlers: DiscordEventHandlers = DiscordEventHandlers.Builder().build()
private val RichPresence: DiscordRichPresence.Builder = DiscordRichPresence private val RichPresence: DiscordRichPresence.Builder = DiscordRichPresence