add overload for only 2 args to find a text channel
This commit is contained in:
parent
4d03589345
commit
14acea98c1
1 changed files with 5 additions and 0 deletions
|
|
@ -29,6 +29,11 @@ namespace BSB.bottypes
|
||||||
return await FindTextChannel(DiscordServer, channelname, cat, sender, TopicType);
|
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)
|
protected async Task<ITextChannel> FindTextChannel(IGuild onserver,string channelname, ICategoryChannel cat, UUID sender, string TopicType,bool create_channel=true)
|
||||||
{
|
{
|
||||||
await WaitForUnlock().ConfigureAwait(false);
|
await WaitForUnlock().ConfigureAwait(false);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue