feat(Guild): updates for Community guilds (#4377)

Co-authored-by: SpaceEEC <spaceeec@users.noreply.github.com>
This commit is contained in:
Advaith
2020-08-12 03:21:17 -07:00
committed by GitHub
parent de8d26d791
commit 57ca3d7843
4 changed files with 89 additions and 27 deletions

10
typings/index.d.ts vendored
View File

@@ -641,6 +641,7 @@ declare module 'discord.js' {
public readonly owner: GuildMember | null;
public ownerID: Snowflake;
public readonly partnered: boolean;
public preferredLocale: string;
public premiumSubscriptionCount: number | null;
public premiumTier: PremiumTier;
public presences: PresenceManager;
@@ -702,8 +703,11 @@ declare module 'discord.js' {
public setIcon(icon: Base64Resolvable | null, reason?: string): Promise<Guild>;
public setName(name: string, reason?: string): Promise<Guild>;
public setOwner(owner: GuildMemberResolvable, reason?: string): Promise<Guild>;
public setPreferredLocale(preferredLocale: string, reason?: string): Promise<Guild>;
public setPublicUpdatesChannel(publicUpdatesChannel: ChannelResolvable | null, reason?: string): Promise<Guild>;
public setRegion(region: string, reason?: string): Promise<Guild>;
public setRolePositions(rolePositions: RolePosition[]): Promise<Guild>;
public setRulesChannel(rulesChannel: ChannelResolvable | null, reason?: string): Promise<Guild>;
public setSplash(splash: Base64Resolvable | null, reason?: string): Promise<Guild>;
public setSystemChannel(systemChannel: ChannelResolvable | null, reason?: string): Promise<Guild>;
public setSystemChannelFlags(systemChannelFlags: SystemChannelFlagsResolvable, reason?: string): Promise<Guild>;
@@ -2544,6 +2548,9 @@ declare module 'discord.js' {
splash?: Base64Resolvable;
discoverySplash?: Base64Resolvable;
banner?: Base64Resolvable;
rulesChannel?: ChannelResolvable;
publicUpdatesChannel?: ChannelResolvable;
preferredLocale?: string;
}
interface GuildEmojiCreateOptions {
@@ -2560,13 +2567,12 @@ declare module 'discord.js' {
| 'ANIMATED_ICON'
| 'BANNER'
| 'COMMERCE'
| 'COMMUNITY'
| 'DISCOVERABLE'
| 'FEATURABLE'
| 'INVITE_SPLASH'
| 'NEWS'
| 'PARTNERED'
| 'PUBLIC'
| 'PUBLIC_DISABLED'
| 'VANITY_URL'
| 'VERIFIED'
| 'VIP_REGIONS'