Add basic moderator commands
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user