Compare commits

...

4 Commits
0.4.1 ... 0.5.0

Author SHA1 Message Date
Vlad Frangu
f375cbe3e3 chore: release 0.5.0 (#20) 2020-09-19 15:51:34 +03:00
Advaith
97c7b4ea24 fix(*): correct typos (#18)
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
2020-09-19 14:59:11 +03:00
Sugden
9e5c5b5aac fix(GatewayIdentifyProperties): rename device to $device (#17)
ref: https://discord.com/developers/docs/topics/gateway#identify-identify-connection-properties
2020-09-19 14:50:13 +03:00
Sugden
8cf1ba3f4f fix(APIUser): premium_type is optional (#19) 2020-09-19 14:49:39 +03:00
7 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ export enum RESTJSONErrorCodes {
UnknownToken,
UnknownUser,
UnknownEmoji,
UnknownWebook,
UnknownWebhook,
UnknownBan = 10026,
UnknownSKU,

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.4.1",
"version": "0.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -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": {

View File

@@ -590,7 +590,7 @@ export interface GatewayHeartbeat {
export interface GatewayIdentifyProperties {
$os: string;
$browser: string;
device: string;
$device: string;
}
/**

View File

@@ -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;

View File

@@ -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 = {

View File

@@ -19,7 +19,7 @@ export interface APIUser {
verified?: boolean;
email?: string | null;
flags?: UserFlags;
premium_type: UserPremiumType;
premium_type?: UserPremiumType;
public_flags?: UserFlags;
}