Add guild name to setSubmissionChannel command

This commit is contained in:
Elnu 2022-02-16 20:12:52 -08:00
parent c42faaf6a3
commit be78e7c88c

View file

@ -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(())