mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Global Settings - Discord Bot section - Added a whitelist to allow bots to send commands to the server manager.
This commit is contained in:
parent
213a90e072
commit
461221294a
27 changed files with 413 additions and 15 deletions
7
src/ServerManager.Discord/Models/DiscordBotWhitelist.cs
Normal file
7
src/ServerManager.Discord/Models/DiscordBotWhitelist.cs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
namespace ServerManagerTool.DiscordBot.Models
|
||||
{
|
||||
public class DiscordBotWhitelist
|
||||
{
|
||||
public string BotId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace ServerManagerTool.DiscordBot.Models
|
||||
{
|
||||
public class DiscordBotWhitelistConfig
|
||||
{
|
||||
public List<DiscordBotWhitelist> DiscordBotWhitelists { get; set; } = new List<DiscordBotWhitelist>();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue