|
|
@ -86,10 +86,9 @@ async fn setSubmissionChannel(ctx: &Context, msg: &Message) -> CommandResult {
|
|
|
|
guild_data.insert(guild, json!({ "submissionChannel": channel }));
|
|
|
|
guild_data.insert(guild, json!({ "submissionChannel": channel }));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set_guild_data(guild_data);
|
|
|
|
set_guild_data(guild_data);
|
|
|
|
// TODO: Add guild name in message
|
|
|
|
|
|
|
|
msg.reply(
|
|
|
|
msg.reply(
|
|
|
|
&ctx.http,
|
|
|
|
&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?;
|
|
|
|
.await?;
|
|
|
|
Ok(())
|
|
|
|
Ok(())
|
|
|
|