mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
feat(MessageMentions): add repliedUser (#5905)
This commit is contained in:
5
typings/index.d.ts
vendored
5
typings/index.d.ts
vendored
@@ -147,6 +147,7 @@ declare module 'discord.js' {
|
||||
APIPartialEmoji as RawEmoji,
|
||||
APIRole as RawRole,
|
||||
Snowflake as APISnowflake,
|
||||
APIUser,
|
||||
ApplicationCommandOptionType as ApplicationCommandOptionTypes,
|
||||
ApplicationCommandPermissionType as ApplicationCommandPermissionTypes,
|
||||
} from 'discord-api-types/v8';
|
||||
@@ -1492,9 +1493,10 @@ declare module 'discord.js' {
|
||||
export class MessageMentions {
|
||||
constructor(
|
||||
message: Message,
|
||||
users: unknown[] | Collection<Snowflake, User>,
|
||||
users: APIUser[] | Collection<Snowflake, User>,
|
||||
roles: Snowflake[] | Collection<Snowflake, Role>,
|
||||
everyone: boolean,
|
||||
repliedUser?: APIUser | User,
|
||||
);
|
||||
private _channels: Collection<Snowflake, Channel> | null;
|
||||
private readonly _content: string;
|
||||
@@ -1506,6 +1508,7 @@ declare module 'discord.js' {
|
||||
public readonly guild: Guild;
|
||||
public has(data: UserResolvable | RoleResolvable | ChannelResolvable, options?: MessageMentionsHasOptions): boolean;
|
||||
public readonly members: Collection<Snowflake, GuildMember> | null;
|
||||
public repliedUser: User | null;
|
||||
public roles: Collection<Snowflake, Role>;
|
||||
public users: Collection<Snowflake, User>;
|
||||
public crosspostedChannels: Collection<Snowflake, CrosspostedChannel>;
|
||||
|
||||
Reference in New Issue
Block a user