Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APIMessageInteraction): add member field #299

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions deno/payloads/v8/_interactions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { APIGuildMember } from '../guild.ts';
import type { APIUser } from '../user.ts';
import type { LocaleString } from '../../../v8.ts';

export type PartialAPIMessageInteractionGuildMember = Pick<APIGuildMember, 'roles' | 'mute' | 'joined_at' | 'deaf'>;

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object
*/
Expand All @@ -25,6 +27,10 @@ export interface APIMessageInteraction {
* The user who invoked the interaction
*/
user: APIUser;
/**
* The guild member who invoked the interaction, only sent in MESSAGE_CREATE events
*/
member?: PartialAPIMessageInteractionGuildMember;
}

/**
Expand Down
6 changes: 6 additions & 0 deletions deno/payloads/v9/_interactions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { APIGuildMember } from '../guild.ts';
import type { APIUser } from '../user.ts';
import type { LocaleString } from '../../../v9.ts';

export type PartialAPIMessageInteractionGuildMember = Pick<APIGuildMember, 'roles' | 'mute' | 'joined_at' | 'deaf'>;

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object
*/
Expand All @@ -25,6 +27,10 @@ export interface APIMessageInteraction {
* The user who invoked the interaction
*/
user: APIUser;
/**
* The guild member who invoked the interaction, only sent in MESSAGE_CREATE events
*/
member?: PartialAPIMessageInteractionGuildMember;
}

/**
Expand Down
6 changes: 6 additions & 0 deletions payloads/v8/_interactions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { APIGuildMember } from '../guild';
import type { APIUser } from '../user';
import type { LocaleString } from '../../../v8';

export type PartialAPIMessageInteractionGuildMember = Pick<APIGuildMember, 'roles' | 'mute' | 'joined_at' | 'deaf'>;

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object
*/
Expand All @@ -25,6 +27,10 @@ export interface APIMessageInteraction {
* The user who invoked the interaction
*/
user: APIUser;
/**
* The guild member who invoked the interaction, only sent in MESSAGE_CREATE events
*/
member?: PartialAPIMessageInteractionGuildMember;
}

/**
Expand Down
6 changes: 6 additions & 0 deletions payloads/v9/_interactions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import type { APIGuildMember } from '../guild';
import type { APIUser } from '../user';
import type { LocaleString } from '../../../v9';

export type PartialAPIMessageInteractionGuildMember = Pick<APIGuildMember, 'roles' | 'mute' | 'joined_at' | 'deaf'>;

/**
* https://discord.com/developers/docs/interactions/receiving-and-responding#message-interaction-object
*/
Expand All @@ -25,6 +27,10 @@ export interface APIMessageInteraction {
* The user who invoked the interaction
*/
user: APIUser;
/**
* The guild member who invoked the interaction, only sent in MESSAGE_CREATE events
*/
member?: PartialAPIMessageInteractionGuildMember;
}

/**
Expand Down