vassago/DiscordInterface/Models/Protocol.cs
Adam R Grey 3031779e24
All checks were successful
greyn/vassago/pipeline/head This commit looks good
gitea/vassago/pipeline/head This commit looks good
gitea.arg.rip/vassago/pipeline/head This commit looks good
fork: vassago
2023-06-01 00:03:23 -04:00

20 lines
611 B
C#

namespace vassago.DiscordInterface.Models;
using vassago.Models;
using Discord;
using Discord.WebSocket;
using System.Threading.Tasks;
public class DiscordProtocol : Protocol
{
public DiscordSocketClient Client {get;set;}
public override Task<Message> SendFile(string path, string messageText = null)
{
throw new System.InvalidOperationException("can't send a file to \"discord\", pick a channel");
}
public override Task<Message> SendMessage(string message)
{
throw new System.InvalidOperationException("can't send a message to \"discord\", pick a channel");
}
}