.boostmsg will now properly show boost, and not greet message

This commit is contained in:
Kwoth
2021-09-13 12:59:47 +02:00
parent 8c5214def2
commit a5f9ac1540
3 changed files with 22 additions and 1 deletions

View File

@@ -172,6 +172,12 @@ namespace NadekoBot.Services
return uow.GuildConfigsForId(gid, set => set).ChannelGreetMessageText;
}
}
public string GetBoostMessage(ulong gid)
{
using var uow = _db.GetDbContext();
return uow.GuildConfigsForId(gid, set => set).BoostMessage;
}
private Task ByeUsers(GreetSettings conf, ITextChannel channel, IUser user)
=> ByeUsers(conf, channel, new[] {user});