Skip to content

Commit ff3e875

Browse files
committed
Use bot emojis
1 parent 65ee95c commit ff3e875

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

core/src/main/kotlin/org/dreamexposure/discal/core/business/ComponentService.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.dreamexposure.discal.core.business
22

3-
import discord4j.common.util.Snowflake
43
import discord4j.core.`object`.component.*
54
import discord4j.core.`object`.emoji.Emoji
65
import org.dreamexposure.discal.core.enums.event.EventColor
@@ -18,7 +17,7 @@ class ComponentService {
1817
fun getStaticMessageComponents(): Array<LayoutComponent> {
1918
val refreshButton = Button.secondary(
2019
"refresh-static-message",
21-
Emoji.custom(Snowflake.of(1175580426585247815), "refresh_ts", false)
20+
Emoji.of(1465798960483668122, "refresh", false)
2221
)
2322

2423
return arrayOf(ActionRow.of(refreshButton))
@@ -28,16 +27,16 @@ class ComponentService {
2827
if (!alwaysShow && !settings.showRsvpDropdown) return emptyArray() // This way we don't need the message UI code to get cluttered
2928

3029
val goingOnTime = SelectMenu.Option.of(getCommonMsg("dropdown.rsvp.option.on-time.label", settings.locale), "rsvp_on_time")
31-
.withEmoji(Emoji.custom(Snowflake.of(1390911034708988025), "rsvp_on_time_ts", false))
30+
.withEmoji(Emoji.of(1465796203013734490, "rsvp_on_time", false))
3231

3332
val goingLate = SelectMenu.Option.of(getCommonMsg("dropdown.rsvp.option.late.label", settings.locale), "rsvp_late")
34-
.withEmoji(Emoji.custom(Snowflake.of(1390911037074833489), "rsvp_late_ts", false))
33+
.withEmoji(Emoji.of(1465796205635309578, "rsvp_late", false))
3534

3635
val notGoing = SelectMenu.Option.of(getCommonMsg("dropdown.rsvp.option.not-going.label", settings.locale), "rsvp_not_going")
37-
.withEmoji(Emoji.custom(Snowflake.of(1390911044515397733), "rsvp_not_going_ts", false))
36+
.withEmoji(Emoji.of(1465796207564554485, "rsvp_not_going", false))
3837

3938
val undecided = SelectMenu.Option.of(getCommonMsg("dropdown.rsvp.option.undecided.label", settings.locale), "rsvp_undecided")
40-
.withEmoji(Emoji.custom(Snowflake.of(1390911039331237968), "rsvp_undecided", false))
39+
.withEmoji(Emoji.of(1465796206566309888, "rsvp_undecided", false))
4140

4241
// So, I checked the DBs and there seem to be no event IDs longer than 75 characters, so I'm just gonna not worry until it becomes a problem
4342
val selectMenu = SelectMenu.of("rsvp|${event.calendarNumber}|${event.id}", goingOnTime, goingLate, notGoing, undecided)

core/src/main/resources/i18n/embed/rsvp.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ list.field.event=Event ID
33
list.field.limit=Max Attending
44
list.field.limit.value={0}/Unlimited
55
list.field.role=Received Role
6-
list.field.onTime=<:rsvp_on_time_ts:1390911034708988025> Arriving On Time
7-
list.field.late=<:rsvp_late_ts:1390911037074833489> Arriving Late
8-
list.field.unsure=<:rsvp_undecided:1390911039331237968> Unsure About Attending
9-
list.field.notGoing=<:rsvp_not_going_ts:1390911044515397733> Not Attending
10-
list.field.waitList=<:rsvp_waitlist_ts:1391553374490464256> Wait List
6+
list.field.onTime=<:rsvp_on_time:1465796203013734490> Arriving On Time
7+
list.field.late=<:rsvp_late:1465796205635309578> Arriving Late
8+
list.field.unsure=<:rsvp_undecided:1465796206566309888> Unsure About Attending
9+
list.field.notGoing=<:rsvp_not_going:1465796207564554485> Not Attending
10+
list.field.waitList=<:rsvp_waitlist:1465796200958525491> Wait List
1111
list.footer=Use `!event view <id>` to view details about this event
1212

1313
waitlist.title=| Event RSVP Followup |

0 commit comments

Comments
 (0)