VoiceChannelMethods
Extends
BaseChannel
<ChannelType
>.DiscordBase
Constructors
new VoiceChannelMethods(client, data)
Parameters
Parameter | Type | Description |
---|---|---|
client | UsingClient | - |
data | Object | Unique ID of the object |
data.id | string | - |
Returns
Inherited from
Source
seyfert/src/structures/extra/DiscordBase.ts:7
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
client | readonly | UsingClient | BaseChannel .client |
guildId? | public | string | - |
id | public | string | BaseChannel .id |
type | public | ChannelType | BaseChannel .type |
Accessors
createdAt
createdAt gets the creation Date instace of the current object.
Returns
Date
Source
seyfert/src/structures/extra/DiscordBase.ts:27
createdTimestamp
Create a timestamp for the current object.
Returns
number
Source
seyfert/src/structures/extra/DiscordBase.ts:20
url
The URL to the channel
Returns
string
Source
seyfert/src/structures/channels.ts:58
Methods
delete()
Parameters
Parameter | Type |
---|---|
reason ? | string |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:66
edit()
Parameters
Parameter | Type |
---|---|
body | RESTPatchAPIChannelJSONBody |
reason ? | string |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:70
fetch()
Parameters
Parameter | Type | Default value |
---|---|---|
force | boolean | false |
Returns
Promise
<AllChannels
>
Inherited from
Source
seyfert/src/structures/channels.ts:62
is()
Type parameters
Type parameter |
---|
T extends keyof IChannelTypes [] |
Parameters
Parameter | Type |
---|---|
channelTypes | T |
Returns
this is IChannelTypes[T[number]]
Inherited from
Source
seyfert/src/structures/channels.ts:133
isCategory()
Returns
this is CategoryChannel
Inherited from
Source
seyfert/src/structures/channels.ts:113
isDM()
Returns
this is DMChannel
Inherited from
Source
seyfert/src/structures/channels.ts:89
isDirectory()
Returns
this is DirectoryChannel
Inherited from
Source
seyfert/src/structures/channels.ts:101
isForum()
Returns
this is ForumChannel
Inherited from
Source
seyfert/src/structures/channels.ts:93
isGuildTextable()
Returns
this is AllGuildTextableChannels
Inherited from
Source
seyfert/src/structures/channels.ts:125
isMedia()
Returns
this is MediaChannel
Inherited from
Source
seyfert/src/structures/channels.ts:85
isNews()
Returns
this is NewsChannel
Inherited from
Source
seyfert/src/structures/channels.ts:117
isStage()
Returns
this is StageChannel
Inherited from
Source
seyfert/src/structures/channels.ts:81
isTextGuild()
Returns
this is TextGuildChannel
Inherited from
Source
seyfert/src/structures/channels.ts:109
isTextable()
Returns
this is AllTextableChannels
Inherited from
Source
seyfert/src/structures/channels.ts:121
isThread()
Returns
this is ThreadChannel
Inherited from
Source
seyfert/src/structures/channels.ts:97
isThreadOnly()
Returns
this is MediaChannel | ForumChannel
Inherited from
Source
seyfert/src/structures/channels.ts:129
isVoice()
Returns
this is VoiceChannel
Inherited from
Source
seyfert/src/structures/channels.ts:105
setBitrate()
Parameters
Parameter | Type |
---|---|
bitrate | null | number |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:342
setRTC()
Parameters
Parameter | Type |
---|---|
rtc_region | null | string |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:350
setUserLimit()
Parameters
Parameter | Type |
---|---|
user_limit | null | number |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:346
setVideoQuality()
Parameters
Parameter | Type |
---|---|
quality | "Auto" | "Full" |
reason ? | string |
Returns
Promise
<AllChannels
>
Source
seyfert/src/structures/channels.ts:354
setVoiceState()
Parameters
Parameter | Type | Default value |
---|---|---|
status | null | string | null |
Returns
Promise
<never
>
Source
seyfert/src/structures/channels.ts:358
states()
Returns
Promise
<VoiceState
[]>
Source
seyfert/src/structures/channels.ts:362
toString()
Returns
string