File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class ClientUser extends User {
98
98
/**
99
99
* Options for setting activities
100
100
* @typedef {Object } ActivitiesOptions
101
- * @property {string } [ name] Name of the activity
101
+ * @property {string } name Name of the activity
102
102
* @property {ActivityType } [type] Type of the activity
103
103
* @property {string } [url] Twitch / YouTube stream URL
104
104
*/
@@ -149,15 +149,15 @@ class ClientUser extends User {
149
149
/**
150
150
* Options for setting an activity.
151
151
* @typedef {Object } ActivityOptions
152
- * @property {string } [ name] Name of the activity
152
+ * @property {string } name Name of the activity
153
153
* @property {string } [url] Twitch / YouTube stream URL
154
154
* @property {ActivityType } [type] Type of the activity
155
155
* @property {number|number[] } [shardId] Shard Id(s) to have the activity set on
156
156
*/
157
157
158
158
/**
159
159
* Sets the activity the client user is playing.
160
- * @param {string|ActivityOptions } [ name] Activity being played, or options for setting the activity
160
+ * @param {string|ActivityOptions } name Activity being played, or options for setting the activity
161
161
* @param {ActivityOptions } [options] Options for setting the activity
162
162
* @returns {ClientPresence }
163
163
* @example
Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ export class ClientUser extends User {
1044
1044
public verified : boolean ;
1045
1045
public edit ( options : ClientUserEditOptions ) : Promise < this> ;
1046
1046
public setActivity ( options ?: ActivityOptions ) : ClientPresence ;
1047
- public setActivity ( name : string , options ?: ActivityOptions ) : ClientPresence ;
1047
+ public setActivity ( name : string , options ?: Omit < ActivityOptions , 'name' > ) : ClientPresence ;
1048
1048
public setAFK ( afk ?: boolean , shardId ?: number | number [ ] ) : ClientPresence ;
1049
1049
public setAvatar ( avatar : BufferResolvable | Base64Resolvable | null ) : Promise < this> ;
1050
1050
public setPresence ( data : PresenceData ) : ClientPresence ;
@@ -4322,7 +4322,7 @@ export interface WebhookFields extends PartialWebhookFields {
4322
4322
export type ActivitiesOptions = Omit < ActivityOptions , 'shardId' > ;
4323
4323
4324
4324
export interface ActivityOptions {
4325
- name ? : string ;
4325
+ name : string ;
4326
4326
url ?: string ;
4327
4327
type ?: Exclude < ActivityType , ActivityType . Custom > ;
4328
4328
shardId ?: number | readonly number [ ] ;
You can’t perform that action at this time.
0 commit comments