1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-19 16:33:36 +03:00

Use WelcomeMessagesChannel

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2024-03-18 15:37:04 +03:00
parent 196f65c1a4
commit b42308e4b6
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1

View file

@ -41,7 +41,7 @@ public class GuildMemberLeftResponder : IResponder<IGuildMemberRemove>
return Result.FromSuccess(); return Result.FromSuccess();
} }
if (GuildSettings.PublicFeedbackChannel.Get(cfg).Empty() if (GuildSettings.WelcomeMessagesChannel.Get(cfg).Empty()
|| GuildSettings.LeaveMessage.Get(cfg) is "off" or "disable" or "disabled") || GuildSettings.LeaveMessage.Get(cfg) is "off" or "disable" or "disabled")
{ {
return Result.FromSuccess(); return Result.FromSuccess();
@ -66,7 +66,7 @@ public class GuildMemberLeftResponder : IResponder<IGuildMemberRemove>
.Build(); .Build();
return await _channelApi.CreateMessageWithEmbedResultAsync( return await _channelApi.CreateMessageWithEmbedResultAsync(
GuildSettings.PublicFeedbackChannel.Get(cfg), embedResult: embed, GuildSettings.WelcomeMessagesChannel.Get(cfg), embedResult: embed,
allowedMentions: Octobot.NoMentions, ct: ct); allowedMentions: Octobot.NoMentions, ct: ct);
} }
} }