Skip to content

Commit 2c1a596

Browse files
committed
feat: support primary guild / clan tags
Ref: discord/discord-api-docs#6836
1 parent 9f1ff20 commit 2c1a596

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/constants.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ export interface CommandUser {
758758
username: string;
759759
avatar: string | null;
760760
avatar_decoration_data: AvatarDecorationData | null;
761+
primary_guild?: UserPrimaryGuild | null;
761762
collectibles: UserCollectibles | null;
762763
global_name: string | null;
763764
discriminator: string;
@@ -791,6 +792,13 @@ export interface UserNameplate {
791792
| 'white';
792793
}
793794

795+
export interface UserPrimaryGuild {
796+
identity_guild_id: string | null;
797+
identity_enabled: boolean | null;
798+
tag: string | null;
799+
badge: string | null;
800+
}
801+
794802
/** @private */
795803
export interface ResolvedRole {
796804
color: number;

src/util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ export function getDiscordEpoch(id: string) {
163163

164164
/** The allowed mentions for a {@link Message}. */
165165
export interface MessageAllowedMentions {
166-
everyone: boolean;
166+
everyone?: boolean;
167+
repliedUser?: boolean;
167168
roles?: boolean | string[];
168169
users?: boolean | string[];
169170
}
@@ -174,6 +175,7 @@ export interface MessageAllowedMentions {
174175
*/
175176
export interface FormattedAllowedMentions {
176177
parse: ('everyone' | 'roles' | 'users')[];
178+
replied_user?: boolean;
177179
roles?: string[];
178180
users?: string[];
179181
}

0 commit comments

Comments
 (0)