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

@ -9,11 +9,11 @@ use poise::{
builder::CreateEmbed,
client::Context,
model::{
channel::Channel,
interactions::{
application::interaction::{
message_component::MessageComponentInteraction, InteractionResponseType,
MessageFlags,
},
prelude::InteractionApplicationCommandCallbackDataFlags,
channel::Channel,
},
},
serenity_prelude as serenity,
@ -260,7 +260,7 @@ WHERE guilds.guild = ?",
r.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|d| {
d.flags(
InteractionApplicationCommandCallbackDataFlags::EPHEMERAL,
MessageFlags::EPHEMERAL,
)
.content("Only the user who performed the command can use these components")
})
@ -314,7 +314,7 @@ WHERE guilds.guild = ?",
r.kind(InteractionResponseType::ChannelMessageWithSource)
.interaction_response_data(|d| {
d.flags(
InteractionApplicationCommandCallbackDataFlags::EPHEMERAL,
MessageFlags::EPHEMERAL,
)
.content("Only the user who performed the command can use these components")
})