fuwa.js / Exports / _DiscordAPI
TODO: make a web scraper that does this work
file
src/lib/_DiscordAPI.ts
fileoverview
Exports (most of) the Discord API interfaces.
https://discord.com/developers/docs
- ActivityType
- ApplicationCommandOptionType
- ApplicationCommandType
- AuditLogEvents
- ChannelType
- GatewayCodes
- GatewayIntents
- InteractionType
- InviteTargets
- MessageType
- PermissionFlags
- PremiumTypes
- UserFlags
- Application
- ApplicationCommandInteractionDataOption
- Attachment
- Author
- Ban
- Channel
- ChannelMention
- Channels
- DiscordAPIOP
- Embed
- Emoji
- GatewayEventResponse
- GatewayEvents
- Guild
- GuildHashes
- InteractionData
- Invite
- InviteStage
- Member
- Message
- MessageForm
- Overwrite
- Reaction
- Ready
- ResolvedData
- Role
- RoleTags
- SelectOption
- ThreadMember
- ThreadMetadata
- User
- UserSettings
Ƭ ChannelProps: Object
Name | Type | Description |
---|---|---|
bitrate? |
number |
Only works for voice channels |
default_auto_archive_duration? |
number |
- |
name |
string |
- |
nsfw? |
boolean |
- |
parent_id? |
string |
This is for channel categories |
permission_overwrites? |
Overwrite [] |
- |
position? |
number |
- |
rate_limit_per_user? |
number |
- |
rtc_region? |
string |
- |
topic? |
string |
- |
type |
ChannelType |
- |
user_limit? |
number |
Only works for voice channels |
video_quality_mode? |
number |
Video quality of a voice channel |
Ƭ GuildMember: Member
Ƭ RoleProps: Object
Name | Type |
---|---|
color |
string | number |
hoist |
boolean |
mentionable |
boolean |
name |
string |
permissions |
PermissionFlags |
Ƭ UserStatus: "idle"
| "dnd"
| "online"
| "offline"
• discordAPI: Object
Name | Type |
---|---|
api |
string |
discord |
string |
gateway |
string |
• discordCDN: "https://cdn.discordapp.com"