30 lines
678 B
Rust
30 lines
678 B
Rust
use crate::extras::Extras;
|
|
use crate::framework::interactions::components::Button;
|
|
use crate::state::State;
|
|
|
|
#[derive(Debug)]
|
|
pub struct CodeOfConductButton;
|
|
|
|
impl Button<State, Extras> for CodeOfConductButton {
|
|
fn label(&self) -> Option<String> {
|
|
Some("Code of Conduct".into())
|
|
}
|
|
|
|
fn url(&self) -> Option<String> {
|
|
Some("https://payphone.lat/code-of-conduct".into())
|
|
}
|
|
}
|
|
|
|
#[derive(Debug)]
|
|
pub struct NeedHelpButton;
|
|
|
|
impl Button<State, Extras> for NeedHelpButton {
|
|
fn label(&self) -> Option<String> {
|
|
Some("Need Help?".into())
|
|
}
|
|
|
|
fn url(&self) -> Option<String> {
|
|
Some("https://discord.gg/9daSsrfTmE".into())
|
|
}
|
|
}
|