Restrict reminder selection to one-per-guild during fetch loop

This commit is contained in:
jude
2022-07-28 19:19:46 +01:00
parent 03f08f0a18
commit 2781f2923e
8 changed files with 23 additions and 14 deletions

View File

@ -1,5 +1,5 @@
use poise::serenity::model::{
id::GuildId, interactions::application_command::ApplicationCommandInteractionDataOption,
application::interaction::application_command::CommandDataOption, id::GuildId,
};
use serde::{Deserialize, Serialize};
@ -19,7 +19,7 @@ pub struct RecordedCommand<U, E> {
#[serde(default = "default_none::<U, E>")]
pub action: Option<Func<U, E>>,
pub command_name: String,
pub options: Vec<ApplicationCommandInteractionDataOption>,
pub options: Vec<CommandDataOption>,
}
pub struct CommandMacro<U, E> {