diff --git a/plugins/HideServerBanner/build.gradle.kts b/plugins/HideServerBanner/build.gradle.kts new file mode 100644 index 0000000..b39d57e --- /dev/null +++ b/plugins/HideServerBanner/build.gradle.kts @@ -0,0 +1,8 @@ +version = "1.0.1" +description = "Hides the server banner from the channel list" + +aliucord { + changelog.set(""" + some fixes + """.trimIndent()) +} diff --git a/plugins/HideServerBanner/src/main/kotlin/com/github/omardotdev/HideServerBanner.kt b/plugins/HideServerBanner/src/main/kotlin/com/github/omardotdev/HideServerBanner.kt new file mode 100644 index 0000000..2b5e493 --- /dev/null +++ b/plugins/HideServerBanner/src/main/kotlin/com/github/omardotdev/HideServerBanner.kt @@ -0,0 +1,29 @@ +/* + * Omar (omardotdev)'s Aliucord Plugins + * Copyright (C) 2025 Omar + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 +*/ + +package com.github.omardotdev + +import android.content.Context +import com.aliucord.annotations.AliucordPlugin +import com.aliucord.entities.Plugin +import com.aliucord.patcher.* +import com.discord.models.guild.Guild + +@AliucordPlugin +class HideServerBanner : Plugin() { + override fun start(context: Context) { + // Removes banner off guild profile and channels list + patcher.instead("getBanner") { null } + } + + override fun stop(context: Context) { + patcher.unpatchAll() + } +}