Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

@Discord

Adam Pine edited this page May 18, 2021 · 1 revision

@Discord - Getting started

So we start with an empty class (abstract is not necessary but this is more type-safe, the class shouldn't be initialized).

abstract class AppDiscord {
}

Then you must declare it as a Discord app class with the @Discord decorator :

import { Discord } from "@typeit/discord";

@Discord() // Decorate the class
abstract class AppDiscord {
}