FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
DSharpPlus/DSharpPlus.Voice/VoiceConnectionOptions.cs at master · DSharpPlus/DSharpPlus · GitHub
DSharpPlus
/
DSharpPlus
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
321
Star
1.3k
Code
Issues
77
Pull requests
3
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
DSharpPlus
/
DSharpPlus.Voice
/
VoiceConnectionOptions.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
46 lines (38 loc) · 1.6 KB
Breadcrumbs
DSharpPlus
/
DSharpPlus.Voice
/
VoiceConnectionOptions.cs
Copy path
File metadata and controls
46 lines (38 loc) · 1.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using
System
;
using
DSharpPlus
.
Voice
.
Codec
;
using
DSharpPlus
.
Voice
.
Receivers
;
namespace
DSharpPlus
.
Voice
;
/// <summary>
/// Provides per-connection behavioural configuration.
/// </summary>
public
sealed
class
VoiceConnectionOptions
{
/// <summary>
/// Indicates whether the bot should mute itself. Defaults to false.
/// </summary>
public
bool
SelfMute
{
get
;
set
;
}
=
false
;
/// <summary>
/// Indicates whether the bot should deafen itself. Defaults to false.
/// </summary>
public
bool
SelfDeafen
{
get
;
set
;
}
=
false
;
/// <summary>
/// Indicates how the library should generally treat sending audio.
/// </summary>
public
AudioType
AudioType
{
get
;
set
;
}
=
AudioType
.
Auto
;
/// <summary>
/// Indicates whether the library should pause transmission of audio when the bot is alone in a voice channel.
/// If this is set to true, playback will resume where it left off when someone joins the voice channel again.
/// Defaults to false.
/// </summary>
public
bool
PauseTransmissionIfAlone
{
get
;
set
;
}
=
false
;
/// <summary>
/// Sets up the audio receiver, if one was specified.
/// </summary>
public
Action
<
AudioReceiver
>
?
ReceiverSetup
{
get
;
set
;
}
/// <summary>
/// An user-defined limit on the bitrate to send audio at. DSharpPlus will use this or the channel bitrate,
/// whichever is lower. Defaults to 128,000, the maximum Discord allows is 384,000 (which is generally not useful
/// for pure audio, 128,000 is generally considered transparent.)
/// </summary>
public
int
MaxBitrate
{
get
;
set
;
}
=
128000
;
}
Back
|
FazBrowse Home
|
New Git URL