feat: indicate which mods start and cancel raids (#5563)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user