use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Discord; impl Platform for Discord { fn id(&self) -> &'static str { "discord" } fn name(&self) -> &'static str { "Discord" } fn category(&self) -> Category { Category::Social } fn domains(&self) -> &'static [&'static str] { &["discord.com", "discordapp.com"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Discord = Discord;