From 14acea98c15f57572b0e7b93f4dafe0d769ead2f Mon Sep 17 00:00:00 2001 From: Madpeter Date: Wed, 14 Oct 2020 04:22:22 +0100 Subject: [PATCH] add overload for only 2 args to find a text channel --- Core/bottypes/Discord/ChannelControl.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/bottypes/Discord/ChannelControl.cs b/Core/bottypes/Discord/ChannelControl.cs index 69c1fb3..d57573b 100644 --- a/Core/bottypes/Discord/ChannelControl.cs +++ b/Core/bottypes/Discord/ChannelControl.cs @@ -29,6 +29,11 @@ namespace BSB.bottypes return await FindTextChannel(DiscordServer, channelname, cat, sender, TopicType); } + protected async Task FindTextChannel(IGuild onserver, string channelname) + { + return await FindTextChannel(onserver, channelname, null, UUID.Zero, "notUSED", false); + } + protected async Task FindTextChannel(IGuild onserver,string channelname, ICategoryChannel cat, UUID sender, string TopicType,bool create_channel=true) { await WaitForUnlock().ConfigureAwait(false);