File tree 4 files changed +18
-15
lines changed
4 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -82,17 +82,18 @@ class BaseGuildVoiceChannel extends GuildChannel {
82
82
83
83
/**
84
84
* Sets the RTC region of the channel.
85
- * @param {?string } region The new region of the channel. Set to `null` to remove a specific region for the channel
85
+ * @param {?string } rtcRegion The new region of the channel. Set to `null` to remove a specific region for the channel
86
+ * @param {string } [reason] The reason for modifying this region.
86
87
* @returns {Promise<BaseGuildVoiceChannel> }
87
88
* @example
88
- * // Set the RTC region to europe
89
- * channel.setRTCRegion('europe ');
89
+ * // Set the RTC region to sydney
90
+ * channel.setRTCRegion('sydney ');
90
91
* @example
91
92
* // Remove a fixed region for this channel - let Discord decide automatically
92
- * channel.setRTCRegion(null);
93
+ * channel.setRTCRegion(null, 'We want to let Discord decide.' );
93
94
*/
94
- setRTCRegion ( region ) {
95
- return this . edit ( { rtcRegion : region } ) ;
95
+ setRTCRegion ( rtcRegion , reason ) {
96
+ return this . edit ( { rtcRegion } , reason ) ;
96
97
}
97
98
98
99
/**
Original file line number Diff line number Diff line change @@ -55,14 +55,15 @@ class StageChannel extends BaseGuildVoiceChannel {
55
55
/**
56
56
* Sets the RTC region of the channel.
57
57
* @name StageChannel#setRTCRegion
58
- * @param {?string } region The new region of the channel. Set to `null` to remove a specific region for the channel
58
+ * @param {?string } rtcRegion The new region of the channel. Set to `null` to remove a specific region for the channel
59
+ * @param {string } [reason] The reason for modifying this region.
59
60
* @returns {Promise<StageChannel> }
60
61
* @example
61
- * // Set the RTC region to europe
62
- * stageChannel.setRTCRegion('europe ');
62
+ * // Set the RTC region to sydney
63
+ * stageChannel.setRTCRegion('sydney ');
63
64
* @example
64
65
* // Remove a fixed region for this channel - let Discord decide automatically
65
- * stageChannel.setRTCRegion(null);
66
+ * stageChannel.setRTCRegion(null, 'We want to let Discord decide.' );
66
67
*/
67
68
}
68
69
Original file line number Diff line number Diff line change @@ -115,14 +115,15 @@ class VoiceChannel extends BaseGuildVoiceChannel {
115
115
/**
116
116
* Sets the RTC region of the channel.
117
117
* @name VoiceChannel#setRTCRegion
118
- * @param {?string } region The new region of the channel. Set to `null` to remove a specific region for the channel
118
+ * @param {?string } rtcRegion The new region of the channel. Set to `null` to remove a specific region for the channel
119
+ * @param {string } [reason] The reason for modifying this region.
119
120
* @returns {Promise<VoiceChannel> }
120
121
* @example
121
- * // Set the RTC region to europe
122
- * voiceChannel.setRTCRegion('europe ');
122
+ * // Set the RTC region to sydney
123
+ * voiceChannel.setRTCRegion('sydney ');
123
124
* @example
124
125
* // Remove a fixed region for this channel - let Discord decide automatically
125
- * voiceChannel.setRTCRegion(null);
126
+ * voiceChannel.setRTCRegion(null, 'We want to let Discord decide.' );
126
127
*/
127
128
}
128
129
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ export class BaseGuildVoiceChannel extends GuildChannel {
450
450
public bitrate : number ;
451
451
public userLimit : number ;
452
452
public createInvite ( options ?: CreateInviteOptions ) : Promise < Invite > ;
453
- public setRTCRegion ( region : string | null ) : Promise < this> ;
453
+ public setRTCRegion ( rtcRegion : string | null , reason ?: string ) : Promise < this> ;
454
454
public fetchInvites ( cache ?: boolean ) : Promise < Collection < string , Invite > > ;
455
455
}
456
456
You can’t perform that action at this time.
0 commit comments