Don't set the type manually in DiscordRPC.kt
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
904c0ac831
commit
b8663dd342
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue