Add guild name to setSubmissionChannel command

late-submissions
Elnu 3 years ago
parent c42faaf6a3
commit be78e7c88c

@ -86,10 +86,9 @@ async fn setSubmissionChannel(ctx: &Context, msg: &Message) -> CommandResult {
guild_data.insert(guild, json!({ "submissionChannel": channel }));
}
set_guild_data(guild_data);
// TODO: Add guild name in message
msg.reply(
&ctx.http,
format!("Submission channel set to <#{}>.", msg.channel_id),
format!("Submission channel for **{}** set to <#{}>.", msg.guild(&ctx).await.unwrap().name, msg.channel_id),
)
.await?;
Ok(())

Loading…
Cancel
Save