tests: add tests
This commit is contained in:
@@ -4,5 +4,5 @@ internal sealed class DiscordClientOptions
|
||||
{
|
||||
public string ApiUrl { get; init; } = string.Empty;
|
||||
public string AppToken { get; init; } = string.Empty;
|
||||
public int Intents { get; init; }
|
||||
public long Intents { get; init; }
|
||||
}
|
||||
@@ -2,28 +2,28 @@ namespace StevesBot.Worker.Discord;
|
||||
|
||||
internal static class DiscordIntents
|
||||
{
|
||||
public const int Guilds = 1 << 0;
|
||||
public const int GuildMembers = 1 << 1;
|
||||
public const int GuildModeration = 1 << 2;
|
||||
public const int GuildExpressions = 1 << 3;
|
||||
public const int GuildIntegrations = 1 << 4;
|
||||
public const int GuildWebhooks = 1 << 5;
|
||||
public const int GuildInvites = 1 << 6;
|
||||
public const int GuildVoiceStates = 1 << 7;
|
||||
public const int GuildPresences = 1 << 8;
|
||||
public const int GuildMessages = 1 << 9;
|
||||
public const int GuildMessageReactions = 1 << 10;
|
||||
public const int GuildMessageTyping = 1 << 11;
|
||||
public const int DirectMessages = 1 << 12;
|
||||
public const int DirectMessageReactions = 1 << 13;
|
||||
public const int DirectMessageTyping = 1 << 14;
|
||||
public const int MessageContent = 1 << 15;
|
||||
public const int GuildScheduledEvents = 1 << 16;
|
||||
public const int AutoModerationConfiguration = 1 << 20;
|
||||
public const int AutoModerationExecution = 1 << 21;
|
||||
public const int GuildMessagePolls = 1 << 24;
|
||||
public const int DirectMessagePolls = 1 << 25;
|
||||
public const int All = Guilds
|
||||
public const long Guilds = 1 << 0;
|
||||
public const long GuildMembers = 1 << 1;
|
||||
public const long GuildModeration = 1 << 2;
|
||||
public const long GuildExpressions = 1 << 3;
|
||||
public const long GuildIntegrations = 1 << 4;
|
||||
public const long GuildWebhooks = 1 << 5;
|
||||
public const long GuildInvites = 1 << 6;
|
||||
public const long GuildVoiceStates = 1 << 7;
|
||||
public const long GuildPresences = 1 << 8;
|
||||
public const long GuildMessages = 1 << 9;
|
||||
public const long GuildMessageReactions = 1 << 10;
|
||||
public const long GuildMessageTyping = 1 << 11;
|
||||
public const long DirectMessages = 1 << 12;
|
||||
public const long DirectMessageReactions = 1 << 13;
|
||||
public const long DirectMessageTyping = 1 << 14;
|
||||
public const long MessageContent = 1 << 15;
|
||||
public const long GuildScheduledEvents = 1 << 16;
|
||||
public const long AutoModerationConfiguration = 1 << 20;
|
||||
public const long AutoModerationExecution = 1 << 21;
|
||||
public const long GuildMessagePolls = 1 << 24;
|
||||
public const long DirectMessagePolls = 1 << 25;
|
||||
public const long All = Guilds
|
||||
| GuildMembers
|
||||
| GuildModeration
|
||||
| GuildExpressions
|
||||
@@ -44,4 +44,4 @@ internal static class DiscordIntents
|
||||
| AutoModerationExecution
|
||||
| GuildMessagePolls
|
||||
| DirectMessagePolls;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user