Add basic moderator commands

This commit is contained in:
2025-08-23 00:02:10 -03:00
parent 8868b18be3
commit eaa38f3474
27 changed files with 752 additions and 249 deletions
+8 -8
View File
@@ -4,12 +4,12 @@ use crate::{extras::Extras, framework::interactions::components::Button, state::
pub struct CodeOfConductButton;
impl Button<State, Extras> for CodeOfConductButton {
fn label(&self) -> Option<&'static str> {
Some("Code of Conduct")
fn label(&self) -> Option<String> {
Some("Code of Conduct".into())
}
fn url(&self) -> Option<&'static str> {
Some("https://payphone.lat/code-of-conduct")
fn url(&self) -> Option<String> {
Some("https://payphone.lat/code-of-conduct".into())
}
}
@@ -17,11 +17,11 @@ impl Button<State, Extras> for CodeOfConductButton {
pub struct NeedHelpButton;
impl Button<State, Extras> for NeedHelpButton {
fn label(&self) -> Option<&'static str> {
Some("Need Help?")
fn label(&self) -> Option<String> {
Some("Need Help?".into())
}
fn url(&self) -> Option<&'static str> {
Some("https://discord.gg/9daSsrfTmE")
fn url(&self) -> Option<String> {
Some("https://discord.gg/9daSsrfTmE".into())
}
}