Skip to content

Commit 1a37ae3

Browse files
feat: guest invites (#1290)
Co-authored-by: Jiralite <[email protected]>
1 parent b05df17 commit 1a37ae3

File tree

16 files changed

+128
-52
lines changed

16 files changed

+128
-52
lines changed

deno/gateway/v10.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/gateway/v9.ts

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v10/guild.ts

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v10/invite.ts

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v10/voice.ts

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/guild.ts

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/invite.ts

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/voice.ts

Lines changed: 11 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gateway/v10.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import type {
2626
GatewayPresenceUpdate,
2727
GatewayThreadListSync,
2828
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
29-
APIVoiceState,
3029
InviteTargetType,
3130
PresenceUpdateStatus,
3231
AutoModerationRuleTriggerType,
@@ -47,6 +46,7 @@ import type {
4746
APIGuildMemberUser,
4847
GatewayGuildMembersChunkPresence,
4948
APIBaseMessage,
49+
APIVoiceStateMember,
5050
} from '../payloads/v10/index';
5151
import type { ReactionType } from '../rest/v10/index';
5252
import type { _Nullable } from '../utils/internals';
@@ -879,7 +879,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
879879
*
880880
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
881881
*/
882-
voice_states: APIBaseVoiceState[];
882+
voice_states: GatewayVoiceStateUpdateDispatchData[];
883883
/**
884884
* Users in the guild
885885
*
@@ -1134,7 +1134,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
11341134
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
11351135
*/
11361136
export interface GatewayGuildMemberUpdateDispatchData
1137-
extends _Nullable<APIGuildMemberJoined>,
1137+
extends APIGuildMemberJoined,
11381138
APIBaseGuildMember,
11391139
Partial<APIBaseVoiceGuildMember>,
11401140
Partial<APIFlaggedGuildMember>,
@@ -1620,7 +1620,7 @@ export interface APIGuildMemberNoUser
16201620
extends APIBaseGuildMember,
16211621
APIFlaggedGuildMember,
16221622
APIGuildMemberAvatar,
1623-
APIGuildMemberJoined,
1623+
NonNullable<APIGuildMemberJoined>,
16241624
APIBaseVoiceGuildMember {}
16251625

16261626
export interface APIUserWithMember extends APIUser {
@@ -2098,7 +2098,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
20982098
/**
20992099
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
21002100
*/
2101-
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
2101+
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
21022102

21032103
/**
21042104
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}

gateway/v9.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import type {
2626
GatewayPresenceUpdate,
2727
GatewayThreadListSync,
2828
GatewayThreadMembersUpdate as RawGatewayThreadMembersUpdate,
29-
APIVoiceState,
3029
InviteTargetType,
3130
PresenceUpdateStatus,
3231
AutoModerationRuleTriggerType,
@@ -47,6 +46,7 @@ import type {
4746
GatewayGuildMembersChunkPresence,
4847
APIBaseMessage,
4948
APIGuildMemberJoined,
49+
APIVoiceStateMember,
5050
} from '../payloads/v9/index';
5151
import type { ReactionType } from '../rest/v9/index';
5252
import type { _Nullable } from '../utils/internals';
@@ -878,7 +878,7 @@ export interface GatewayGuildCreateDispatchData extends APIGuild {
878878
*
879879
* @see {@link https://discord.com/developers/docs/resources/voice#voice-state-object}
880880
*/
881-
voice_states: APIBaseVoiceState[];
881+
voice_states: GatewayVoiceStateUpdateDispatchData[];
882882
/**
883883
* Users in the guild
884884
*
@@ -1133,7 +1133,7 @@ export type GatewayGuildMemberUpdateDispatch = _DataPayload<
11331133
* @see {@link https://discord.com/developers/docs/topics/gateway-events#guild-member-update}
11341134
*/
11351135
export interface GatewayGuildMemberUpdateDispatchData
1136-
extends _Nullable<APIGuildMemberJoined>,
1136+
extends APIGuildMemberJoined,
11371137
APIBaseGuildMember,
11381138
Partial<APIBaseVoiceGuildMember>,
11391139
Partial<APIFlaggedGuildMember>,
@@ -1619,7 +1619,7 @@ export interface APIGuildMemberNoUser
16191619
extends APIBaseGuildMember,
16201620
APIFlaggedGuildMember,
16211621
APIGuildMemberAvatar,
1622-
APIGuildMemberJoined,
1622+
NonNullable<APIGuildMemberJoined>,
16231623
APIBaseVoiceGuildMember {}
16241624

16251625
export interface APIUserWithMember extends APIUser {
@@ -2097,7 +2097,7 @@ export type GatewayVoiceStateUpdateDispatch = _DataPayload<
20972097
/**
20982098
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-state-update}
20992099
*/
2100-
export type GatewayVoiceStateUpdateDispatchData = APIVoiceState;
2100+
export interface GatewayVoiceStateUpdateDispatchData extends APIBaseVoiceState, APIVoiceStateMember {}
21012101

21022102
/**
21032103
* @see {@link https://discord.com/developers/docs/topics/gateway-events#voice-server-update}

0 commit comments

Comments
 (0)