AnonymousGuild
Class for anonymous guilds.
Link
https://discord.com/developers/docs/resources/guild#guild-resource
Extends
BaseGuild
Constructors
new AnonymousGuild(client, data)
1new AnonymousGuild(client: UsingClient, data: APIPartialGuild): AnonymousGuild
Parameters
Parameter | Type | Description |
---|---|---|
client | UsingClient | - |
data | APIPartialGuild | Unique ID of the object |
Returns
Inherited from
BaseGuild.constructor
Source
seyfert/src/structures/extra/DiscordBase.ts:7
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
banner | public | undefined | null | string | BaseGuild.banner |
client | readonly | UsingClient | BaseGuild.client |
description | public | undefined | null | string | BaseGuild.description |
features | public | undefined | GuildFeature [] | BaseGuild.features |
icon | public | null | string | BaseGuild.icon |
id | public | string | BaseGuild.id |
name | public | string | BaseGuild.name |
splash | public | null | string | BaseGuild.splash |
vanityUrlCode | public | undefined | null | string | BaseGuild.vanityUrlCode |
verificationLevel | public | undefined | GuildVerificationLevel | BaseGuild.verificationLevel |
welcomeScreen | public | undefined | Object | BaseGuild.welcomeScreen |
Accessors
createdAt
1get createdAt(): Date
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
1get createdTimestamp(): number
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
partnered
1get partnered(): boolean
Returns
boolean
Source
seyfert/src/structures/extra/BaseGuild.ts:11
verified
1get verified(): boolean
If the guild is verified.
Link
https://discord.com/developers/docs/resources/guild#guild-object-guild-features
Returns
boolean
Source
seyfert/src/structures/extra/BaseGuild.ts:22
Methods
bannerURL()
1bannerURL(options?: CDNUrlOptions): undefined | string
bannerURL gets the current guild banner as a string.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | CDNUrlOptions | Image options for the banner url. |
Returns
undefined
| string
Banner url or void
Inherited from
BaseGuild.bannerURL
Link
https://discord.com/developers/docs/reference#image-formatting
Source
seyfert/src/structures/extra/BaseGuild.ts:67
fetch()
1fetch(): Promise<BaseGuild>
Fetch guild on API
Returns
Promise
<BaseGuild
>
Inherited from
BaseGuild.fetch
Source
seyfert/src/structures/extra/BaseGuild.ts:32
iconURL()
1iconURL(options?: CDNUrlOptions): undefined | string
iconURL gets the current guild icon.
Parameters
Parameter | Type |
---|---|
options ? | CDNUrlOptions |
Returns
undefined
| string
Inherited from
BaseGuild.iconURL
Link
https://discord.com/developers/docs/reference#image-formatting
Source
seyfert/src/structures/extra/BaseGuild.ts:41
splashURL()
1splashURL(options?: CDNUrlOptions): undefined | string
splashURL gets the current guild splash as a string.
Parameters
Parameter | Type | Description |
---|---|---|
options ? | CDNUrlOptions | Image options for the splash url. |
Returns
undefined
| string
Splash url or void.
Inherited from
BaseGuild.splashURL
Link
https://discord.com/developers/docs/reference#image-formatting
Source
seyfert/src/structures/extra/BaseGuild.ts:54
toString()
1toString(): string
Returns
string
Inherited from
BaseGuild.toString