Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions plugins/HideServerBanner/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version = "1.0.1"
description = "Hides the server banner from the channel list"

aliucord {
changelog.set("""
some fixes
""".trimIndent())
}
Original file line number Diff line number Diff line change
@@ -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<Guild>("getBanner") { null }
}

override fun stop(context: Context) {
patcher.unpatchAll()
}
}