add overload for only 2 args to find a text channel

This commit is contained in:
Madpeter 2020-10-14 04:22:22 +01:00
parent 4d03589345
commit 14acea98c1

View file

@ -29,6 +29,11 @@ namespace BSB.bottypes
return await FindTextChannel(DiscordServer, channelname, cat, sender, TopicType);
}
protected async Task<ITextChannel> FindTextChannel(IGuild onserver, string channelname)
{
return await FindTextChannel(onserver, channelname, null, UUID.Zero, "notUSED", false);
}
protected async Task<ITextChannel> FindTextChannel(IGuild onserver,string channelname, ICategoryChannel cat, UUID sender, string TopicType,bool create_channel=true)
{
await WaitForUnlock().ConfigureAwait(false);