Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guild Scheduled Events #1275

Merged
merged 84 commits into from
Nov 18, 2022
Merged
Show file tree
Hide file tree
Changes from 73 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
474aa2f
feat: initial structure
Loliticos Sep 6, 2021
be21548
chore: update typing name
Loliticos Sep 6, 2021
ab0e1cb
feat: typings for GuildEvent
Loliticos Sep 6, 2021
6565285
feat: fix option name
Loliticos Sep 6, 2021
d859185
chore: documment guild events
Loliticos Sep 6, 2021
652201e
feat: rename IDS to IDs
Loliticos Sep 6, 2021
f5b744d
chore: remove extra whitespaces
Loliticos Sep 6, 2021
149cbaf
chore: remove extra whitespaces
Loliticos Sep 6, 2021
75b108e
chore: run lint
Loliticos Sep 6, 2021
5dd0cba
chore: run ts lint
Loliticos Sep 6, 2021
4bb4049
chore: remove whitespace
Loliticos Sep 6, 2021
df8ea66
fix: rename property to events
Loliticos Sep 6, 2021
fb67aa4
fix: update skus type temp
Loliticos Sep 6, 2021
c40cc0a
fix: suggestions
Loliticos Sep 6, 2021
8b8ba84
fix: use ID instead of id
Loliticos Sep 6, 2021
44228da
fix: change event name
Loliticos Sep 6, 2021
714e775
fix: sort permission by increasing value
Loliticos Sep 6, 2021
acae845
fix: parse data to UnixTimestamp
Loliticos Sep 6, 2021
8715696
chore: rename id to ID
Loliticos Sep 6, 2021
e5c36ee
chore: link to discord documentation
Loliticos Sep 6, 2021
4f3e74a
fix: rename event to guildScheduledEventUpdate
Loliticos Sep 6, 2021
50830d6
fix: parse timestamp into an Unix Timestamp
Loliticos Sep 6, 2021
041d9f5
chore: update prop type
Loliticos Sep 6, 2021
8a27f6d
chore: fix jsdoc
Loliticos Sep 6, 2021
5c9ab84
Merge branch 'guild-events' of github.com:Loliticos/eris into guild-e…
Loliticos Sep 6, 2021
7722df4
chore: fix jsdoc and typings
Loliticos Sep 6, 2021
f083944
fix: logic for update event
Loliticos Sep 6, 2021
56814ff
chore: rename variable to cachedEvent
Loliticos Sep 6, 2021
43a2548
chore: add entityType reference link
Loliticos Sep 6, 2021
a44621f
chore: add status reference link
Loliticos Sep 6, 2021
8557b81
feat: guildScheduledEventUser* created
Loliticos Sep 8, 2021
0e2c7fb
chore: fix documentation
Loliticos Sep 8, 2021
4025aa7
documentation: add string union type
Loliticos Sep 8, 2021
6286e76
fix: make event a new GuildEvent
Loliticos Sep 8, 2021
128ec9f
fix: update jsdoc
Loliticos Sep 9, 2021
d319590
fix: update logic and jsdoc
Loliticos Sep 9, 2021
5d212d6
fix: typo
Loliticos Sep 9, 2021
0e74a88
fix: edit instead of create
Loliticos Sep 23, 2021
d8a16bc
typings: document methods
Loliticos Sep 23, 2021
7cdf1a3
typings: rename PartialGuildEvent to GuildEventOptions
Loliticos Sep 23, 2021
8a2655a
fix: correct description
Loliticos Sep 27, 2021
64fd89c
Merge branch 'dev' into guild-events
Loliticos Oct 6, 2021
73dfc6e
Update Constants.js
Loliticos Oct 6, 2021
c2ffb7a
fix: correct permission numbers and position
Loliticos Oct 7, 2021
5ae544c
fix: correct position
Loliticos Oct 7, 2021
d81ec9a
Merge branch 'dev' into guild-events
Loliticos Oct 17, 2021
9cb8a67
feat: rename events
Loliticos Nov 13, 2021
546b5ac
feat: add events to audit log
Loliticos Nov 13, 2021
6a4aca2
merge branch dev
Loliticos Nov 13, 2021
01eea12
fix: new line
Loliticos Nov 13, 2021
bba17b5
style: run lint
Loliticos Nov 13, 2021
5b4779c
fix: extra space
Loliticos Nov 13, 2021
44f5cff
merge branch dev
Loliticos Nov 14, 2021
72d5ceb
fix: merge conflict
Loliticos Nov 14, 2021
e269333
feat: change event position
Loliticos Nov 14, 2021
95c5032
merge branch dev
Loliticos Nov 14, 2021
544b5e3
fix: remove duplicate permissions
Loliticos Nov 14, 2021
5b251a9
Merge branch 'dev' into guild-events
Loliticos Nov 15, 2021
c92fa5b
feat: remove sku properties
Loliticos Nov 15, 2021
314b7bd
feat: add and remove properties
Loliticos Nov 15, 2021
f17ba6f
feat: update endpoints
Loliticos Nov 16, 2021
ce46145
fix: creator instead of creatorID
Loliticos Nov 16, 2021
a1bc115
feat: remove creatorID
Loliticos Nov 16, 2021
076ed21
feat: updates
Loliticos Nov 16, 2021
6e85219
Merge branch 'dev' into guild-events
Loliticos Dec 2, 2021
d828fe6
feat: add guild scheduled events intent
Loliticos Dec 2, 2021
47c5905
feat: remove speakerIDs
Loliticos Dec 2, 2021
c8278ab
feat: document guild method
Loliticos Dec 2, 2021
3fb841f
Merge branch 'dev' of https://github.com/bsian03/eris into 1275
bsian03 Apr 12, 2022
fd0a2ee
[INCOMPLETE] Fix PR
bsian03 Apr 13, 2022
3d143ad
[INCOMPLETE] Fix PR
bsian03 Apr 13, 2022
074af8e
[INCOMPLETE] Fix PR
bsian03 Apr 13, 2022
7f3157b
Fix PR
bsian03 Apr 13, 2022
e0ebb13
Apply suggestions from code review
bsian03 Apr 15, 2022
98314d2
Apply suggestions from code review
bsian03 Apr 15, 2022
a0e55e7
Fix types i hope
bsian03 May 10, 2022
0870d5d
Merge branch 'dev' into guild-events
bsian03 May 23, 2022
bf5cd7d
Merge branch 'dev' into guild-events
DonovanDMC Jun 7, 2022
dea37f0
lint ts
DonovanDMC Jun 7, 2022
fe09b0d
remove trailing comma
DonovanDMC Jun 7, 2022
842ccd0
recalculate perms
DonovanDMC Jun 7, 2022
1c604ed
Merge branch 'dev' into guild-events
DonovanDMC Jun 8, 2022
baebf52
Merge branch 'dev' into guild-events
DonovanDMC Jun 30, 2022
ce99ba7
Merge branch 'dev' into guild-events
DonovanDMC Aug 14, 2022
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
3 changes: 2 additions & 1 deletion esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const {
GuildChannel,
GuildIntegration,
GuildPreview,
GuildScheduledEvent,
GuildTemplate,
Interaction,
Invite,
Expand Down Expand Up @@ -58,5 +59,5 @@ export const {
VoiceChannel,
VoiceConnection,
VoiceConnectionManager,
VoiceState
VoiceState,
} = Eris;
121 changes: 116 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ declare namespace Eris {
type GuildTextableChannel = TextChannel | NewsChannel;
type GuildTextableWithThread = GuildTextableChannel | AnyThreadChannel;
type InviteChannel = InvitePartialChannel | Exclude<AnyGuildChannel, CategoryChannel | AnyThreadChannel>;
type PossiblyUncachedSpeakableChannel = VoiceChannel | StageChannel | Uncached;
type PossiblyUncachedTextable = Textable | Uncached;
type PossiblyUncachedTextableChannel = TextableChannel | Uncached;
type TextableChannel = (GuildTextable & GuildTextableChannel) | (ThreadTextable & AnyThreadChannel) | (Textable & PrivateChannel);
Expand Down Expand Up @@ -87,8 +88,12 @@ declare namespace Eris {
type DefaultNotifications = Constants["DefaultMessageNotificationLevels"][keyof Constants["DefaultMessageNotificationLevels"]];
type ExplicitContentFilter = Constants["ExplicitContentFilterLevels"][keyof Constants["ExplicitContentFilterLevels"]];
type GuildFeatures = Constants["GuildFeatures"][number];
type GuildScheduledEventEntityTypes = Constants["GuildScheduledEventEntityTypes"][keyof Constants["GuildScheduledEventEntityTypes"]];
type GuildScheduledEventPrivacyLevel = Constants["GuildScheduledEventPrivacyLevel"][keyof Constants["GuildScheduledEventPrivacyLevel"]];
type GuildScheduledEventStatus = Constants["GuildScheduledEventStatus"][keyof Constants["GuildScheduledEventStatus"]];
type NSFWLevel = Constants["GuildNSFWLevels"][keyof Constants["GuildNSFWLevels"]];
type PossiblyUncachedGuild = Guild | Uncached;
type PossiblyUncachedGuildScheduledEvent = GuildScheduledEvent | Uncached;
type PremiumTier = Constants["PremiumTiers"][keyof Constants["PremiumTiers"]];
type VerificationLevel = Constants["VerificationLevels"][keyof Constants["VerificationLevels"]];
type SystemChannelFlags = Constants["SystemChannelFlags"][keyof Constants["SystemChannelFlags"]];
Expand Down Expand Up @@ -612,6 +617,19 @@ declare namespace Eris {
topic?: string | null;
type: GuildChannelTypes;
}
interface OldGuildScheduledEvent {
channel: PossiblyUncachedSpeakableChannel | null;
description?: string;
entityID?: string;
enitityMetadata?: GuildScheduledEventMetadata;
entityType: GuildScheduledEventEntityTypes;
image?: string;
name: string;
privacyLevel: GuildScheduledEventPrivacyLevel;
scheduledEndTime: number | null;
scheduledStartTime: number;
status: GuildScheduledEventStatus;
}
interface OldGuildTextChannel extends OldGuildChannel {
nsfw: boolean;
rateLimitPerUser: number;
Expand Down Expand Up @@ -689,7 +707,7 @@ declare namespace Eris {
channelRecipientAdd: [channel: GroupChannel, user: User];
channelRecipientRemove: [channel: GroupChannel, user: User];
channelUpdate: [channel: AnyGuildChannel, oldChannel: OldGuildChannel | OldGuildTextChannel | OldGuildVoiceChannel]
| [channel: GroupChannel, oldChannel: OldGroupChannel];
| [channel: GroupChannel, oldChannel: OldGroupChannel];
connect: [id: number];
debug: [message: string, id?: number];
disconnect: [];
Expand All @@ -709,6 +727,11 @@ declare namespace Eris {
guildRoleCreate: [guild: Guild, role: Role];
guildRoleDelete: [guild: Guild, role: Role];
guildRoleUpdate: [guild: Guild, role: Role, oldRole: OldRole];
guildScheduledEventCreate: [event: GuildScheduledEvent];
guildScheduledEventDelete: [event: GuildScheduledEvent];
guildScheduledEventUpdate: [event: GuildScheduledEvent, oldEvent: OldGuildScheduledEvent | null];
guildScheduledEventUserAdd: [event: PossiblyUncachedGuildScheduledEvent, user: User | Uncached];
guildScheduledEventUserRemove: [event: PossiblyUncachedGuildScheduledEvent, user: User | Uncached];
guildStickersUpdate: [guild: PossiblyUncachedGuild, stickers: Sticker[], oldStickers: Sticker[] | null];
guildUnavailable: [guild: UnavailableGuild];
guildUpdate: [guild: Guild, oldGuild: OldGuild];
Expand Down Expand Up @@ -860,6 +883,15 @@ declare namespace Eris {
limit?: number;
userID?: string;
}
interface GetGuildScheduledEventOptions {
withUserCount?: boolean;
}
interface GetGuildScheduledEventUsersOptions {
after?: string;
before?: string;
limit?: number;
withMember?: boolean;
}
interface GetPruneOptions {
days?: number;
includeRoles?: string[];
Expand Down Expand Up @@ -900,6 +932,34 @@ declare namespace Eris {
systemChannelID?: string;
verificationLevel?: VerificationLevel;
}
interface GuildScheduledEventMetadata {
location?: string;
}
interface GuildScheduledEventEditOptions<T extends GuildScheduledEventEntityTypes = GuildScheduledEventEntityTypes> {
channelID: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? null | undefined : string | undefined;
description?: string | null;
entityMetadata: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? Required<GuildScheduledEventMetadata> : GuildScheduledEventMetadata | null | undefined;
entityType?: T;
image?: string;
name?: string;
privacyLevel?: GuildScheduledEventPrivacyLevel;
scheduledEndTime: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? Date : Date | undefined
scheduledStartTime?: Date;
status?: GuildScheduledEventStatus;
}
interface GuildScheduledEventOptions<T extends GuildScheduledEventEntityTypes = GuildScheduledEventEntityTypes> extends Omit<GuildScheduledEventEditOptions<T>, "status"> {
channelID: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? undefined : string;
entityMetadata: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? Required<GuildScheduledEventMetadata> : GuildScheduledEventMetadata | undefined;
entityType: T;
name: string;
privacyLevel: GuildScheduledEventPrivacyLevel;
scheduledStartTime: Date;
}
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
interface GuildScheduledEventUser {
guildScheduledEventID: string;
user: User;
member?: Member;
}
interface GuildTemplateOptions {
name?: string;
description?: string | null;
Expand Down Expand Up @@ -1671,9 +1731,10 @@ declare namespace Eris {
directMessages: 4096;
directMessageReactions: 8192;
directMessageTyping: 16384;
allNonPrivileged: 32509;
guildScheduledEvents: 65536;
allNonPrivileged: 98045;
allPrivileged: 258;
all: 32767;
all: 98303;
};
InteractionResponseTypes: {
PONG: 1;
Expand Down Expand Up @@ -1808,10 +1869,10 @@ declare namespace Eris {
sendMessagesInThreads: 274877906944n;
startEmbeddedActivities: 549755813888n;
moderateMembers: 1099511627776n;
allGuild: 1101592527038n;
allGuild: 1110182461630n;
allText: 518349388881n;
allVoice: 554385278737n;
all: 1228360646655n;
all: 2181843386367n;
};
PremiumTiers: {
NONE: 0;
Expand Down Expand Up @@ -1921,6 +1982,21 @@ declare namespace Eris {
/** @deprecated */
DISCONNECT: 13;
};
GuildScheduledEventStatus: {
SCHEDULED: 1;
ACTIVE: 2;
COMPLETED: 3;
CANCELED: 4;
};
GuildScheduledEventEntityTypes: {
STAGE_INSTANCE: 1;
VOICE: 2;
EXTERNAL: 3;
};
GuildScheduledEventPrivacyLevel: {
PUBLIC: 1;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
GUILD_ONLY: 2;
};
WebhookTypes: {
INCOMING: 1;
CHANNEL_FOLLOWER: 2;
Expand Down Expand Up @@ -2233,6 +2309,7 @@ declare namespace Eris {
createGuild(name: string, options?: CreateGuildOptions): Promise<Guild>;
createGuildCommand(guildID: string, command: ApplicationCommandStructure): Promise<ApplicationCommand>;
createGuildEmoji(guildID: string, options: EmojiOptions, reason?: string): Promise<Emoji>;
createGuildScheduledEvent<T extends GuildScheduledEventEntityTypes>(guildID: string, event: GuildScheduledEventOptions<T>): Promise<GuildScheduledEvent<T>>;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
createGuildFromTemplate(code: string, name: string, icon?: string): Promise<Guild>;
createGuildSticker(guildID: string, options: CreateStickerOptions, reason?: string): Promise<Sticker>;
createGuildTemplate(guildID: string, name: string, description?: string | null): Promise<GuildTemplate>;
Expand All @@ -2250,6 +2327,7 @@ declare namespace Eris {
deleteGuildCommand(guildID: string, commandID: string): Promise<void>;
deleteGuildDiscoverySubcategory(guildID: string, categoryID: string, reason?: string): Promise<void>;
deleteGuildEmoji(guildID: string, emojiID: string, reason?: string): Promise<void>;
deleteGuildScheduledEvent(guildID: string, eventID: string): Promise<void>;
deleteGuildIntegration(guildID: string, integrationID: string): Promise<void>;
deleteGuildSticker(guildID: string, stickerID: string, reason?: string): Promise<void>;
deleteGuildTemplate(guildID: string, code: string): Promise<GuildTemplate>;
Expand Down Expand Up @@ -2291,6 +2369,7 @@ declare namespace Eris {
options: { name?: string; roles?: string[] },
reason?: string
): Promise<Emoji>;
editGuildScheduledEvent<T extends GuildScheduledEventEntityTypes>(guildID: string, eventID: string, event: GuildScheduledEventEditOptions<T>, reason: string): Promise<GuildScheduledEvent<T>>;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
editGuildIntegration(guildID: string, integrationID: string, options: IntegrationOptions): Promise<void>;
editGuildMember(guildID: string, memberID: string, options: MemberOptions, reason?: string): Promise<Member>;
editGuildSticker(guildID: string, stickerID: string, options?: EditStickerOptions, reason?: string): Promise<Sticker>;
Expand Down Expand Up @@ -2368,6 +2447,8 @@ declare namespace Eris {
getGuildIntegrations(guildID: string): Promise<GuildIntegration[]>;
getGuildInvites(guildID: string): Promise<Invite[]>;
getGuildPreview(guildID: string): Promise<GuildPreview>;
getGuildScheduledEvents(guildID: string, options?: GetGuildScheduledEventOptions): Promise<GuildScheduledEvent[]>
getGuildScheduledEventUsers(guildID: string, eventID: string, options?: GetGuildScheduledEventUsersOptions): Promise<GuildScheduledEventUser[]>;
getGuildTemplate(code: string): Promise<GuildTemplate>;
getGuildTemplates(guildID: string): Promise<GuildTemplate[]>;
getGuildVanity(guildID: string): Promise<GuildVanity>;
Expand All @@ -2394,6 +2475,7 @@ declare namespace Eris {
getRESTGuildChannels(guildID: string): Promise<AnyGuildChannel[]>;
getRESTGuildEmoji(guildID: string, emojiID: string): Promise<Emoji>;
getRESTGuildEmojis(guildID: string): Promise<Emoji[]>;
getRESTGuildScheduledEvent(guildID: string, eventID: string, options?: GetGuildScheduledEventOptions): Promise<GuildScheduledEvent>;
getRESTGuildMember(guildID: string, memberID: string): Promise<Member>;
getRESTGuildMembers(guildID: string, options?: GetRESTGuildMembersOptions): Promise<Member[]>;
/** @deprecated */
Expand Down Expand Up @@ -2624,6 +2706,7 @@ declare namespace Eris {
discoverySplashURL: string | null;
emojiCount?: number;
emojis: Emoji[];
events: Collection<GuildScheduledEvent>;
explicitContentFilter: ExplicitContentFilter;
features: GuildFeatures[];
icon: string | null;
Expand Down Expand Up @@ -2695,6 +2778,7 @@ declare namespace Eris {
createChannel(name: string, type?: number, reason?: string, options?: CreateChannelOptions | string): Promise<unknown>;
createCommand(command: ApplicationCommandStructure): Promise<ApplicationCommand>;
createEmoji(options: { image: string; name: string; roles?: string[] }, reason?: string): Promise<Emoji>;
createScheduledEvent(event: GuildScheduledEventOptions): Promise<GuildScheduledEvent>;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
createRole(options: RoleOptions | Role, reason?: string): Promise<Role>;
createSticker(options: CreateStickerOptions, reason?: string): Promise<Sticker>;
createTemplate(name: string, description?: string | null): Promise<GuildTemplate>;
Expand All @@ -2704,6 +2788,7 @@ declare namespace Eris {
deleteEmoji(emojiID: string, reason?: string): Promise<void>;
deleteIntegration(integrationID: string): Promise<void>;
deleteRole(roleID: string): Promise<void>;
deleteScheduledEvent(eventID: string): Promise<void>;
deleteSticker(stickerID: string, reason?: string): Promise<void>;
deleteTemplate(code: string): Promise<GuildTemplate>;
dynamicBannerURL(format?: ImageFormat, size?: number): string | null;
Expand All @@ -2720,6 +2805,7 @@ declare namespace Eris {
/** @deprecated */
editNickname(nick: string): Promise<void>;
editRole(roleID: string, options: RoleOptions): Promise<Role>;
editScheduledEvent<T extends GuildScheduledEventEntityTypes>(eventID: string, event: GuildScheduledEventEditOptions<T>, reason?: string): Promise<GuildScheduledEvent<T>>
editSticker(stickerID: string, options?: EditStickerOptions, reason?: string): Promise<Sticker>;
editTemplate(code: string, options: GuildTemplateOptions): Promise<GuildTemplate>;
editVanity(code: string | null): Promise<GuildVanity>;
Expand Down Expand Up @@ -2751,8 +2837,11 @@ declare namespace Eris {
/** @deprecated */
getRESTMembers(limit?: number, after?: string): Promise<Member[]>;
getRESTRoles(): Promise<Role[]>;
getRESTScheduledEvent(eventID: string): Promise<GuildScheduledEvent>;
getRESTSticker(stickerID: string): Promise<Sticker>;
getRESTStickers(): Promise<Sticker[]>;
getScheduledEvents(options?: GetGuildScheduledEventOptions): Promise<GuildScheduledEvent[]>;
getScheduledEventUsers(eventID: string, options?: GetGuildScheduledEventUsersOptions): Promise<GuildScheduledEventUser[]>;
getTemplates(): Promise<GuildTemplate[]>;
getVanity(): Promise<GuildVanity>;
getVoiceRegions(): Promise<VoiceRegion[]>;
Expand All @@ -2763,6 +2852,8 @@ declare namespace Eris {
kickMember(userID: string, reason?: string): Promise<void>;
leave(): Promise<void>;
leaveVoiceChannel(): void;
listEvents(withUserCount: boolean): Promise<Array<GuildScheduledEvent>>;
listEventUsers(eventID: string): void;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
permissionsOf(memberID: string | Member | MemberRoles): Permission;
pruneMembers(options?: PruneMemberOptions): Promise<number>;
removeMemberRole(memberID: string, roleID: string, reason?: string): Promise<void>;
Expand Down Expand Up @@ -2816,6 +2907,26 @@ declare namespace Eris {
permissionsOf(memberID: string | Member | MemberRoles): Permission;
}

export class GuildScheduledEvent<T extends GuildScheduledEventEntityTypes = GuildScheduledEventEntityTypes> extends Base {
channelID: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? null : PossiblyUncachedSpeakableChannel;
creator?: User;
description?: string;
entityID: string;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
entityMetadata: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? Required<GuildScheduledEventMetadata> : null;
entityType: T;
guild: PossiblyUncachedGuild;
id: string;
image?: string;
name: string;
privacyLevel: GuildScheduledEventPrivacyLevel;
scheduledEndTime: T extends Constants["GuildScheduledEventEntityTypes"]["EXTERNAL"] ? number : number | null;
scheduledStartTime: number;
status: GuildScheduledEventStatus;
userCount?: number;
delete(): Promise<void>;
edit(event: GuildScheduledEventEditOptions): Promise<GuildScheduledEvent>;
listUsers(): void;
bsian03 marked this conversation as resolved.
Show resolved Hide resolved
}

export class GuildIntegration extends Base {
account: { id: string; name: string };
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Eris.Guild = require("./lib/structures/Guild");
Eris.GuildChannel = require("./lib/structures/GuildChannel");
Eris.GuildIntegration = require("./lib/structures/GuildIntegration");
Eris.GuildPreview = require("./lib/structures/GuildPreview");
Eris.GuildScheduledEvent = require("./lib/structures/GuildScheduledEvent");
Eris.GuildTemplate = require("./lib/structures/GuildTemplate");
Eris.Interaction = require("./lib/structures/Interaction");
Eris.Invite = require("./lib/structures/Invite");
Expand Down
Loading