feat: indicate which mods start and cancel raids (#5563)

This commit is contained in:
iProdigy
2024-08-31 03:12:25 -07:00
committed by GitHub
parent af309b726f
commit 956186d1a1
8 changed files with 121 additions and 5 deletions
@@ -152,9 +152,8 @@ QString startRaid(const CommandContext &ctx)
channel{ctx.channel}](const HelixUser &targetUser) {
getHelix()->startRaid(
twitchChannel->roomId(), targetUser.id,
[channel, targetUser] {
channel->addSystemMessage(QString("You started to raid %1.")
.arg(targetUser.displayName));
[] {
// do nothing
},
[channel, targetUser](auto error, auto message) {
auto errorMessage = formatStartRaidError(error, message);
@@ -202,8 +201,8 @@ QString cancelRaid(const CommandContext &ctx)
getHelix()->cancelRaid(
ctx.twitchChannel->roomId(),
[channel{ctx.channel}] {
channel->addSystemMessage("You cancelled the raid.");
[] {
// do nothing
},
[channel{ctx.channel}](auto error, auto message) {
auto errorMessage = formatCancelRaidError(error, message);