mirror of
https://github.com/discordjs/discord-api-types.git
synced 2026-05-22 19:30:09 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f375cbe3e3 | ||
|
|
97c7b4ea24 | ||
|
|
9e5c5b5aac | ||
|
|
8cf1ba3f4f |
@@ -18,7 +18,7 @@ export enum RESTJSONErrorCodes {
|
||||
UnknownToken,
|
||||
UnknownUser,
|
||||
UnknownEmoji,
|
||||
UnknownWebook,
|
||||
UnknownWebhook,
|
||||
|
||||
UnknownBan = 10026,
|
||||
UnknownSKU,
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-api-types",
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"description": "Discord API typings that are kept up to date for use in bot library creation.",
|
||||
"main": "default/index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -590,7 +590,7 @@ export interface GatewayHeartbeat {
|
||||
export interface GatewayIdentifyProperties {
|
||||
$os: string;
|
||||
$browser: string;
|
||||
device: string;
|
||||
$device: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -80,11 +80,11 @@ export interface APIGuild extends APIPartialGuild {
|
||||
public_updates_channel_id: string | null;
|
||||
max_video_channel_users?: number;
|
||||
/**
|
||||
* Returned by calling GET `/guilds/{guid.id}` with the query `with_counts` set to `true`
|
||||
* Returned by calling GET `/guilds/{guild.id}` with the query `with_counts` set to `true`
|
||||
*/
|
||||
approximate_member_count?: number;
|
||||
/**
|
||||
* Returned by calling GET `/guilds/{guid.id}` with the query `with_counts` set to `true`
|
||||
* Returned by calling GET `/guilds/{guild.id}` with the query `with_counts` set to `true`
|
||||
*/
|
||||
approximate_presence_count?: number;
|
||||
welcome_screen?: APIGuildWelcomeScreen;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* These flags are exported as `BigInt`s and NOT numbers. For most of them, you can
|
||||
* convert them in a number by wrapping it in `Number()`, however be careful as any
|
||||
* futher bits added may cause issues if done so. Try to use BigInts as much as possible
|
||||
* further bits added may cause issues if done so. Try to use BigInts as much as possible
|
||||
* or modules that can replicate them in some way.
|
||||
*/
|
||||
export const PermissionFlagsBits = {
|
||||
|
||||
@@ -19,7 +19,7 @@ export interface APIUser {
|
||||
verified?: boolean;
|
||||
email?: string | null;
|
||||
flags?: UserFlags;
|
||||
premium_type: UserPremiumType;
|
||||
premium_type?: UserPremiumType;
|
||||
public_flags?: UserFlags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user