Apply patreon sharing across web/bot

This commit is contained in:
jude committed 2025-10-27 17:52:31 +00:00
1 parent 91310d47d3
commit 1d8fd39d13
11 files changed
+61 -101

No files matched your search

+4 -2
View File
@@ -532,7 +532,9 @@ pub async fn create_reminder(
};
let (processed_interval, processed_expires) = if let Some(repeat) = &interval {
if check_subscription(&ctx, ctx.author().id, ctx.guild_id()).await {
if check_subscription(&ctx, &ctx.data().database, ctx.author().id, ctx.guild_id())
.await
{
(
parse_duration(repeat)
.or_else(|_| parse_duration(&format!("1 {}", repeat)))
@@ -547,7 +549,7 @@ pub async fn create_reminder(
)
} else {
ctx.send(CreateReply::default().content(
"`repeat` is only available to Patreon subscribers or self-hosted users",
"`interval` is only available to Patreon subscribers or self-hosted users",
))
.await?;