-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
docs(structures): update DataTemplate docs #11388
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -20,7 +20,10 @@ export class Message<Omitted extends keyof APIMessage | '' = 'edited_timestamp' | |||||
| Omitted | ||||||
| > { | ||||||
| /** | ||||||
| * The template used for removing data from the raw data stored for each Message | ||||||
| * The template used for removing data from the raw data stored for each Message. | ||||||
| * | ||||||
| * @remarks This template has defaults, if you want to remove additional data and keep the defaults, | ||||||
| * use `Object.defineProperties`. To override the defaults, set this value directly. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public static override DataTemplate: Partial<APIMessage> = { | ||||||
| set timestamp(_: string) {}, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,10 @@ export class MessageCall<Omitted extends keyof APIMessageCall | '' = 'ended_time | |||||
| Omitted | ||||||
| > { | ||||||
| /** | ||||||
| * The template used for removing data from the raw data stored for each MessageCall | ||||||
| * The template used for removing data from the raw data stored for each MessageCall. | ||||||
| * | ||||||
| * @remarks This template has defaults, if you want to remove additional data and keep the defaults, | ||||||
| * use `Object.defineProperties`. To override the defaults, set this value directly. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public static override DataTemplate: Partial<APIMessageCall> = { | ||||||
| set ended_timestamp(_: string) {}, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,9 @@ import type { Partialize } from '../utils/types.js'; | |||||
| export class Reaction<Omitted extends keyof APIReaction | '' = ''> extends Structure<APIReaction, Omitted> { | ||||||
| /** | ||||||
| * The template used for removing data from the raw data stored for each Reaction. | ||||||
| * | ||||||
| * @remarks This template has defaults, if you want to remove additional data and keep the defaults, | ||||||
| * use `Object.defineProperties`. To override the defaults, set this value directly. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public static override DataTemplate: Partial<APIReaction> = { | ||||||
| set burst_colors(_: string[]) {}, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,9 @@ import type { Partialize } from '../../utils/types.js'; | |||||
| export class Embed<Omitted extends keyof APIEmbed | '' = ''> extends Structure<APIEmbed, Omitted> { | ||||||
| /** | ||||||
| * The template used for removing data from the raw data stored for each Embed. | ||||||
| * | ||||||
| * @remarks This template has defaults, if you want to remove additional data and keep the defaults, | ||||||
| * use `Object.defineProperties`. To override the defaults, set this value directly. | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| */ | ||||||
| public static override readonly DataTemplate: Partial<APIEmbed> = { | ||||||
| set timestamp(_: string) {}, | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.