mirror of
https://github.com/VibedByKaKi/aliucord-plugins.git
synced 2026-10-08 23:01:13 +02:00
|
|
||
|---|---|---|
| .. | ||
| 01-setup.md | ||
| 02-plugin-anatomy.md | ||
| 03-commands.md | ||
| 04-patching.md | ||
| 05-settings.md | ||
| 06-discord-and-reflection.md | ||
| 07-build-deploy-publish.md | ||
| 08-learning-from-examples.md | ||
| README.md | ||
Aliucord plugin guide
How to build plugins for Aliucord, the legacy Android Discord client mod.
This guide is distilled from the upstream material in docs/ and real plugins in examples/. Prefer Kotlin for new work. Java still works.
Contents
- Setup — tools, template repo, first Gradle sync
- Plugin anatomy — class, annotation, lifecycle
- Commands — slash commands via
CommandsAPI - Patching — hook Discord methods with
PatcherAPI - Settings — persist config and add a settings UI
- Discord code and reflection — find targets, reach private members
- Build, deploy, publish — zip, ADB,
buildsbranch, review - Learning from examples — which cloned repos to read for what
Upstream sources
| Local path | What it is |
|---|---|
docs/documentation |
Official plugin/theme/smali docs |
docs/plugins-template |
Official monorepo template with sample plugins |
docs/gradle-plugin |
Gradle plugin that packages and deploys plugins |
examples/* |
Distributed community and official plugin repos |
API reference: Aliucord Dokka
Quick path
- Fork/use
docs/plugins-template(or clone the GitHub template with all branches). - Fill the
// TODOplaceholders inplugins/build.gradle.kts. - Copy
MyFirstKotlinPlugin, rename it, write yourstart/stop. - Run
deployWithAdbagainst a test account on Aliucord. - Read a small real plugin from
examples/when something is unclear.