Skip to content
Interfacecorev0.14.0

Subscriptions

Custom subscribers defined by the application. Augment it via declaration merging to type your own subscriber payloads.

interface Subscriptions
// the transport package your bot installs, '@seedcord/gateway' or '@seedcord/http'
declare module '@seedcord/gateway' {
  interface Subscriptions {
    'userJoin': { userId: string; guildId: string };
    'levelUp': { userId: string; level: number };
  }
}