Add project files.

This commit is contained in:
Wizzy69
2022-01-07 20:26:10 +02:00
parent 8b8d4c7147
commit 84ee5c6235
53 changed files with 3544 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using Discord;
using System.Threading.Tasks;
namespace PluginManager.Others
{
public static class ChannelManagement
{
public static IGuildChannel GetTextChannel(this IGuild server, string name) => server.GetTextChannel(name);
public static IGuildChannel GetVoiceChannel(this IGuild server, string name) => server.GetVoiceChannel(name);
public static async Task<IDMChannel> GetDMChannel(IGuildUser user) => await user.CreateDMChannelAsync();
public static IChannel GetChannel(IMessage message) => message.Channel;
}
}