mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
20 lines
617 B
TypeScript
20 lines
617 B
TypeScript
import type { Model } from "../Base.ts";
|
|
import type { Session } from "../../Session.ts";
|
|
import type { DiscordGuild } from "../../../discordeno/mod.ts";
|
|
import AnonymousGuild from "./AnonymousGuild.ts";
|
|
import WelcomeScreen from "../WelcomeScreen.ts";
|
|
|
|
export class InviteGuild extends AnonymousGuild implements Model {
|
|
constructor(session: Session, data: Partial<DiscordGuild>) {
|
|
super(session, data);
|
|
|
|
if (data.welcome_screen) {
|
|
this.welcomeScreen = new WelcomeScreen(session, data.welcome_screen);
|
|
}
|
|
}
|
|
|
|
welcomeScreen?: WelcomeScreen;
|
|
}
|
|
|
|
export default InviteGuild;
|