forked from adam/discord-bot-shtik
start to structure code for multiplatofrm
This commit is contained in:
parent
a87fcd6ad9
commit
bfe7f582b2
@ -7,8 +7,6 @@ using System.Net;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Discord;
|
|
||||||
using Discord.WebSocket;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using QRCoder;
|
using QRCoder;
|
||||||
|
|
||||||
|
5
Models/Attachment.cs
Normal file
5
Models/Attachment.cs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
using System;
|
||||||
|
public abstract class Attachment
|
||||||
|
{
|
||||||
|
public Guid Id{get;set;}
|
||||||
|
}
|
7
Models/Channel.cs
Normal file
7
Models/Channel.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
public abstract class Channel
|
||||||
|
{
|
||||||
|
public Guid Id{get;set;}
|
||||||
|
public bool IsDM {get;set;}
|
||||||
|
}
|
9
Models/Message.cs
Normal file
9
Models/Message.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
public abstract class Message
|
||||||
|
{
|
||||||
|
public Guid Id{get;set;}
|
||||||
|
public Guid InChannel{get;set;}
|
||||||
|
public string Content{get;set;}
|
||||||
|
public bool TagsMe{get;set;}
|
||||||
|
}
|
6
Models/Protocol.cs
Normal file
6
Models/Protocol.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
public abstract class Protocol
|
||||||
|
{
|
||||||
|
public Guid Id{get;set;}
|
||||||
|
}
|
7
Models/User.cs
Normal file
7
Models/User.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
|
public abstract class User
|
||||||
|
{
|
||||||
|
public Guid Id{get;set;}
|
||||||
|
public bool IsBot {get;set;} //webhook counts
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user