-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supports more events for AudioClient
- Loading branch information
Showing
5 changed files
with
263 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/Kook.Net.WebSocket/Entities/Audio/PeerPermissionInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace Kook.Audio; | ||
|
||
/// <summary> | ||
/// Represents the information of a peer's permission in a voice channel. | ||
/// </summary> | ||
public readonly struct PeerPermissionInfo | ||
{ | ||
/// <summary> | ||
/// Gets whether the peer is muted by the guild. | ||
/// </summary> | ||
public bool MutedByGuild { get; init; } | ||
|
||
/// <summary> | ||
/// Gets whether the peer is deafened by the guild. | ||
/// </summary> | ||
public bool DeafenedByGuild { get; init; } | ||
|
||
/// <summary> | ||
/// Gets whether the peer can use voice activity, i.e. the peer can speak without pressing a key. | ||
/// </summary> | ||
public bool CanUseVoiceActivity { get; init; } | ||
|
||
/// <summary> | ||
/// Gets whether the peer can connect to the voice channel. | ||
/// </summary> | ||
public bool CanConnect { get; init; } | ||
|
||
/// <summary> | ||
/// Gets whether the peer can speak in the voice channel. | ||
/// </summary> | ||
public bool CanSpeak { get; init; } | ||
|
||
/// <summary> | ||
/// Gets whether the peer can manage the voice channel. | ||
/// </summary> | ||
public bool CanManageVoice { get; init; } | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Kook.Audio; | ||
|
||
/// <summary> | ||
/// Represents the information of a soundtrack. | ||
/// </summary> | ||
public readonly struct SoundtrackInfo | ||
{ | ||
/// <summary> | ||
/// Gets the name of the software from which the soundtrack audio originates | ||
/// </summary> | ||
public string? Software { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the name of the music soundtrack | ||
/// </summary> | ||
public string? Music { get; init; } | ||
|
||
/// <summary> | ||
/// Gets the singer of the music soundtrack | ||
/// </summary> | ||
public string? Singer { get; init; } | ||
} |