mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 21:13:30 +01:00
docs: add missing, fix existing (#10842)
* docs: add missing, fix existing * refactor: new stuff * fix: requested changes * fix: use `@link` for `@mixes` Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> * chore: disable bad eslint rule --------- Co-authored-by: Qjuh <76154676+Qjuh@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -8,12 +8,15 @@ import { allowedMentionPredicate } from './Assertions.js';
|
||||
* A builder that creates API-compatible JSON data for allowed mentions.
|
||||
*/
|
||||
export class AllowedMentionsBuilder implements JSONEncodable<APIAllowedMentions> {
|
||||
/**
|
||||
* The API data associated with these allowed mentions.
|
||||
*/
|
||||
private readonly data: Partial<APIAllowedMentions>;
|
||||
|
||||
/**
|
||||
* Creates a new allowed mentions builder from API data.
|
||||
* Creates a new allowed mentions builder.
|
||||
*
|
||||
* @param data - The API data to create this allowed mentions builder with
|
||||
* @param data - The API data to create this allowed mentions with
|
||||
*/
|
||||
public constructor(data: Partial<APIAllowedMentions> = {}) {
|
||||
this.data = structuredClone(data);
|
||||
|
||||
Reference in New Issue
Block a user