Add message for empty mod list. (#4546)

This commit is contained in:
2547techno
2023-04-15 13:59:46 -04:00
committed by GitHub
parent 8fd975270a
commit 88bb1b4ae7
2 changed files with 8 additions and 0 deletions
@@ -1161,6 +1161,13 @@ void CommandController::initialize(Settings &, Paths &paths)
getHelix()->getModerators(
twitchChannel->roomId(), 500,
[channel, twitchChannel](auto result) {
if (result.empty())
{
channel->addMessage(makeSystemMessage(
"This channel does not have any moderators."));
return;
}
// TODO: sort results?
MessageBuilder builder;