mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-04-29 01:07:47 +00:00
Allow using bot token instead of user token (#70)
This commit is contained in:
15
DiscordChatExporter.Core/Models/AuthToken.cs
Normal file
15
DiscordChatExporter.Core/Models/AuthToken.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace DiscordChatExporter.Core.Models
|
||||
{
|
||||
public class AuthToken
|
||||
{
|
||||
public AuthTokenType Type { get; }
|
||||
|
||||
public string Value { get; }
|
||||
|
||||
public AuthToken(AuthTokenType type, string value)
|
||||
{
|
||||
Type = type;
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
8
DiscordChatExporter.Core/Models/AuthTokenType.cs
Normal file
8
DiscordChatExporter.Core/Models/AuthTokenType.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace DiscordChatExporter.Core.Models
|
||||
{
|
||||
public enum AuthTokenType
|
||||
{
|
||||
User,
|
||||
Bot
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user