Skip to content

Commit

Permalink
fix: canary links not embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
willeccles committed May 25, 2023
1 parent 9ea057c commit 32632b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/robbb/src/events/message_create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ async fn handle_attachment_logging(ctx: &client::Context, msg: &Message) {
#[tracing::instrument(skip_all)]
async fn handle_quote(ctx: &client::Context, msg: &Message) -> Result<bool> {
lazy_static::lazy_static! {
static ref MSG_LINK_PATTERN: Regex = Regex::new(r#"<?https://(?:canary|ptb\.)?discord(?:app)?\.com/channels/(\d+)/(\d+)/(\d+)>?"#).unwrap();
static ref MSG_LINK_PATTERN: Regex = Regex::new(r#"<?https://(?:canary\.|ptb\.)?discord(?:app)?\.com/channels/(\d+)/(\d+)/(\d+)>?"#).unwrap();
}
if msg.content.starts_with('!') {
return Ok(false);
Expand Down

0 comments on commit 32632b5

Please sign in to comment.