This commit is contained in:
parent
07f7cddf71
commit
accc834375
@ -39,10 +39,9 @@ pub async fn event_handler(
|
|||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
// Future event handling will go here
|
// Future event handling will go here
|
||||||
// Data will contain the database connection
|
// Data will contain the database connection
|
||||||
match &event {
|
if let &FullEvent::Message { new_message } = &event {
|
||||||
&FullEvent::Message { new_message } => {
|
if new_message.guild_id.unwrap() == SLOP_SCOUNDREL_SERVER_ID
|
||||||
if new_message.guild_id.unwrap() == SLOP_SCOUNDREL_SERVER_ID {
|
&& new_message
|
||||||
if new_message
|
|
||||||
.author
|
.author
|
||||||
.has_role(
|
.has_role(
|
||||||
ctx.http.clone(),
|
ctx.http.clone(),
|
||||||
@ -79,8 +78,5 @@ pub async fn event_handler(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user