Removed guild requirement for several commands
This commit is contained in:
parent
7847bd38b9
commit
2c2634925d
@ -12,7 +12,6 @@ use serenity::model::channel::Message;
|
|||||||
pub struct AlbumCmd;
|
pub struct AlbumCmd;
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[min_args(1)]
|
#[min_args(1)]
|
||||||
#[description("Add an image to an album")]
|
#[description("Add an image to an album")]
|
||||||
#[usage("<album_name>")]
|
#[usage("<album_name>")]
|
||||||
@ -59,7 +58,6 @@ async fn add_image(ctx: &Context, msg: &Message, mut args: Args) -> CommandResul
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[min_args(1)]
|
#[min_args(1)]
|
||||||
#[description("Bulk add images")]
|
#[description("Bulk add images")]
|
||||||
#[usage("<path>")]
|
#[usage("<path>")]
|
||||||
@ -113,7 +111,6 @@ async fn import_from_file(ctx: &Context, msg: &Message, mut args: Args) -> Comma
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[max_args(1)]
|
#[max_args(1)]
|
||||||
#[description("Remove an imgur album command.")]
|
#[description("Remove an imgur album command.")]
|
||||||
#[usage("<name>")]
|
#[usage("<name>")]
|
||||||
@ -154,7 +151,6 @@ async fn remove_album(ctx: &Context, msg: &Message, args: Args) -> CommandResult
|
|||||||
#[command]
|
#[command]
|
||||||
#[aliases("albums")]
|
#[aliases("albums")]
|
||||||
#[description("List all album commands.")]
|
#[description("List all album commands.")]
|
||||||
#[only_in(guilds)]
|
|
||||||
async fn list_albums(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
async fn list_albums(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,6 @@ pub struct FrenCoin;
|
|||||||
#[command]
|
#[command]
|
||||||
#[description("Get your current balance")]
|
#[description("Get your current balance")]
|
||||||
#[aliases("audit")]
|
#[aliases("audit")]
|
||||||
#[only_in(guilds)]
|
|
||||||
async fn balance(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn balance(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
let mut data = ctx.data.write().await;
|
let mut data = ctx.data.write().await;
|
||||||
let global_data = data.get_mut::<GlobalData>().unwrap();
|
let global_data = data.get_mut::<GlobalData>().unwrap();
|
||||||
|
|||||||
@ -27,7 +27,6 @@ struct DadJoke {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[aliases("dad")]
|
#[aliases("dad")]
|
||||||
#[description("Ask your dad")]
|
#[description("Ask your dad")]
|
||||||
async fn dad_joke(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
async fn dad_joke(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||||
@ -223,7 +222,6 @@ async fn roll(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[bucket = "bad_apple"]
|
#[bucket = "bad_apple"]
|
||||||
async fn bad_apple(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
async fn bad_apple(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||||
let mut frames = BAD_APPLE.split('|');
|
let mut frames = BAD_APPLE.split('|');
|
||||||
|
|||||||
@ -58,7 +58,6 @@ pub async fn create_motivation_image(motivation: Motivation) -> Result<Vec<u8>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[description("Let's give you motivation")]
|
#[description("Let's give you motivation")]
|
||||||
async fn motivation(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
async fn motivation(ctx: &Context, msg: &Message, _args: Args) -> CommandResult {
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
@ -84,7 +83,6 @@ async fn motivation(ctx: &Context, msg: &Message, _args: Args) -> CommandResult
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[description("Add imgur album to the motivation generator")]
|
#[description("Add imgur album to the motivation generator")]
|
||||||
async fn motivation_add_album(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn motivation_add_album(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
@ -100,7 +98,6 @@ async fn motivation_add_album(ctx: &Context, msg: &Message, args: Args) -> Comma
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[description("Add an action to the motivation generator")]
|
#[description("Add an action to the motivation generator")]
|
||||||
async fn motivation_add_action(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn motivation_add_action(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
@ -116,7 +113,6 @@ async fn motivation_add_action(ctx: &Context, msg: &Message, args: Args) -> Comm
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[command]
|
#[command]
|
||||||
#[only_in(guilds)]
|
|
||||||
#[description("Add goal to the motivation generator")]
|
#[description("Add goal to the motivation generator")]
|
||||||
async fn motivation_add_goal(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn motivation_add_goal(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user