Compare commits

...

4 Commits
0.6.0 ... 0.7.0

Author SHA1 Message Date
Vlad Frangu
363d914934 chore: release 0.7.0 (#29) 2020-10-18 14:43:42 +03:00
Jan
91c63f05ca fix(GatewayIdentify): use correct presence interface (#28) 2020-10-18 14:31:20 +03:00
Advaith
f058ed6aa1 feat(APIGuildWidgetMember): add activity and use proper status type (#24) 2020-10-18 14:20:58 +03:00
didinele
0982610731 fix(GatewayHeartbeat): d is nullable (#26) 2020-10-18 14:14:08 +03:00
4 changed files with 7 additions and 6 deletions

2
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{
"name": "discord-api-types",
"version": "0.6.0",
"version": "0.7.0",
"description": "Discord API typings that are kept up to date for use in bot library creation.",
"main": "default/index.js",
"scripts": {

View File

@@ -581,7 +581,7 @@ export type GatewayWebhooksUpdateDispatch = DataPayload<
*/
export interface GatewayHeartbeat {
op: GatewayOPCodes.Heartbeat;
d: number;
d: number | null;
}
/**
@@ -605,7 +605,7 @@ export interface GatewayIdentify {
large_threshold?: number;
// eslint-disable-next-line prettier/prettier
shard?: [shard_id: number, shard_count: number];
presence?: RawGatewayPresenceUpdate;
presence?: GatewayPresenceUpdateData;
guild_subscriptions?: boolean;
intents: number;
};

View File

@@ -4,7 +4,7 @@
import type { APIChannel } from './channel';
import type { APIEmoji } from './emoji';
import type { GatewayPresenceUpdate } from './gateway';
import type { GatewayPresenceUpdate, PresenceUpdateStatus } from './gateway';
import type { APIRole } from './permissions';
import type { APIUser } from './user';
import type { GatewayVoiceState } from './voice';
@@ -204,7 +204,8 @@ export interface APIGuildWidgetMember {
username: string;
discriminator: string;
avatar: string | null;
status: string;
status: PresenceUpdateStatus;
activity?: { name: string };
avatar_url: string;
}