mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 01:00:49 +00:00
ignore
command (#59)
* New table `ignored_users` and queries * Update sqlx to 0.8 * Implement `ignore` command and add needed hooks
This commit is contained in:
parent
a36fa87964
commit
7c0cbea716
30 changed files with 580 additions and 383 deletions
|
@ -189,9 +189,15 @@ mod ids {
|
|||
use super::ParseError;
|
||||
|
||||
/// An `UserId` parsed the old way.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub struct UserId(pub id::UserId);
|
||||
|
||||
impl From<u64> for UserId {
|
||||
fn from(value: u64) -> Self {
|
||||
Self(id::UserId::new(value))
|
||||
}
|
||||
}
|
||||
|
||||
impl FromStr for UserId {
|
||||
type Err = ParseError;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue