fix(cmd/set_welcome): send roles last

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-05-01 00:22:42 +02:00
parent a4197bc5af
commit cdc0dac0c3

View file

@ -171,14 +171,14 @@ pub async fn set_welcome(
channel_id.send_message(ctx, embed).await?; channel_id.send_message(ctx, embed).await?;
} }
for message in roles_messages {
channel_id.send_message(ctx, message).await?;
}
for message in welcome_layout.messages { for message in welcome_layout.messages {
channel_id.say(ctx, message).await?; channel_id.say(ctx, message).await?;
} }
for message in roles_messages {
channel_id.send_message(ctx, message).await?;
}
if let Some(log_channel) = configured_channels.log_channel_id { if let Some(log_channel) = configured_channels.log_channel_id {
let author = utils::embed_author_from_user(ctx.author()); let author = utils::embed_author_from_user(ctx.author());
let embed = CreateEmbed::new() let embed = CreateEmbed::new()