-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
405 additions
and
4 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/QQBot.Net.WebSocket/API/Gateway/AudioOrLiveChannelMemberEvent.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,18 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace QQBot.API.Gateway; | ||
|
||
internal class AudioOrLiveChannelMemberEvent | ||
{ | ||
[JsonPropertyName("guild_id")] | ||
public required ulong GuildId { get; init; } | ||
|
||
[JsonPropertyName("channel_id")] | ||
public required ulong ChannelId { get; init; } | ||
|
||
[JsonPropertyName("channel_type")] | ||
public AudioOrLiveChannelType ChannelType { get; init; } | ||
|
||
[JsonPropertyName("user_id")] | ||
public required ulong UserId { get; init; } | ||
} |
7 changes: 7 additions & 0 deletions
7
src/QQBot.Net.WebSocket/API/Gateway/AudioOrLiveChannelType.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,7 @@ | ||
namespace QQBot.API.Gateway; | ||
|
||
internal enum AudioOrLiveChannelType | ||
{ | ||
Audio = 2, | ||
Live = 5 | ||
} |
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,9 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace QQBot.API.Gateway; | ||
|
||
internal class GuildMemberEvent : MemberWithGuildId | ||
{ | ||
[JsonPropertyName("op_user_id")] | ||
public required ulong OperatorUserId { 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
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
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
Oops, something went wrong.