chore: remove old method, fix fmt of r# str
This commit is contained in:
parent
0ab290a876
commit
5e17a98bff
1 changed files with 2 additions and 11 deletions
13
src/main.rs
13
src/main.rs
|
@ -52,8 +52,8 @@ impl EventHandler for Handler {
|
|||
} else {
|
||||
let msg = format!(
|
||||
r#"
|
||||
Welcome {} to the {} server!
|
||||
Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use ``/link_wolves`` to get full access.
|
||||
Welcome {} to the {} server!
|
||||
Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use ``/link_wolves`` to get full access.
|
||||
"#,
|
||||
new_member.display_name(),
|
||||
&config.server_name,
|
||||
|
@ -61,15 +61,6 @@ impl EventHandler for Handler {
|
|||
&config.server,
|
||||
&config.bot_channel_id
|
||||
);
|
||||
// let msg = format!(
|
||||
// "Welcome {} to the {} server! \n\
|
||||
// Sign up on [UL Wolves]({}) and go to https://discord.com/channels/{}/{} and use ``/link_wolves`` to get full access.",
|
||||
// new_member.display_name(),
|
||||
// &config.server_name,
|
||||
// &config.wolves_link,
|
||||
// &config.server,
|
||||
// &config.bot_channel_id
|
||||
// );
|
||||
|
||||
if let Err(err) = new_member.user.direct_message(&ctx, |m| m.content(&msg)).await {
|
||||
dbg!(err);
|
||||
|
|
Loading…
Reference in a new issue