Skip to content

Commit

Permalink
fix: 非推奨メソッド is_private() を削除し, DM かの判定を ID チェックのみに (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Jun 13, 2024
1 parent c3cb885 commit 6b26a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ static SKIP_MESSAGE_LINK_REGEX: Lazy<Regex> = Lazy::new(|| {
impl EventHandler for EvHander {
#[tracing::instrument(skip_all)]
async fn message(&self, ctx: Context, message: Message) {
if message.is_private() || message.author.bot {
if message.author.bot {
return;
}

Expand Down

0 comments on commit 6b26a52

Please sign in to comment.