File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
foxy/src/main/kotlin/net/cakeyfox/foxy
interactions/vanilla/utils/declarations Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ class NotificationCommand : FoxyCommandDeclarationWrapper {
1010 executor = NotificationExecutor (this .name)
1111 }
1212
13- subCommand(" birthday" ) {
14- executor = NotificationExecutor (this .name)
15- }
16-
1713 subCommand(" daily_reminder" ) {
1814 executor = NotificationExecutor (this .name)
1915 }
Original file line number Diff line number Diff line change @@ -67,17 +67,15 @@ class BirthdayReminderTask(
6767
6868 val discordUser = foxy.shardManager.retrieveUserById(user._id ).await()
6969 if (isBirthdayToday && ! hasReceivedThisYear) {
70- if (user.notifications?.disableBirthdayNotifications != true ) {
71- foxy.utils.sendDirectMessage(discordUser) {
72- embed {
73- title = pretty(
74- FoxyEmotes .FoxyCake ,
75- locale[" birthday.title" ]
76- )
77- color = Colors .PURPLE
78- description = locale[" birthday.message" , FoxyEmotes .FoxyYay ]
79- thumbnail = Constants .FOXY_WOW
80- }
70+ foxy.utils.sendDirectMessage(discordUser) {
71+ embed {
72+ title = pretty(
73+ FoxyEmotes .FoxyCake ,
74+ locale[" birthday.title" ]
75+ )
76+ color = Colors .PURPLE
77+ description = locale[" birthday.message" , FoxyEmotes .FoxyYay ]
78+ thumbnail = Constants .FOXY_WOW
8179 }
8280 }
8381
You can’t perform that action at this time.
0 commit comments