Embrace the pointer

This commit is contained in:
daru
2022-07-20 23:47:31 +02:00
parent d54ed135e3
commit 3771b1d2c4
5 changed files with 55 additions and 41 deletions

View File

@@ -41,7 +41,7 @@ func SendAppointBroadcast(creator string, app *Appointment) {
},
}
user, _, err := GetUserData(creator)
user, _, err := GetUser(creator)
if err == nil {
msge.Author = &discordgo.MessageEmbedAuthor{
Name: user.Username,
@@ -84,7 +84,7 @@ func AnnounceAppointmentSoon(app *Appointment) {
msgStart.WriteString(fmt.Sprintf("<@%d>", uData.DiscordID))
}
msgs := fmt.Sprintf("⏰ Appointment starting in <t:%d:R>!\n[%s](https://anime.hanami.family/anime/%d) at\n<t:%d:F>", app.Time.Unix(), anime.Title, app.Anime, app.Time.Unix())
msgs := fmt.Sprintf("⏰ Appointment starting <t:%d:R>!\n[%s](https://anime.hanami.family/anime/%d) at\n<t:%d:F>", app.Time.Unix(), anime.Title, app.Anime, app.Time.Unix())
msge := discordgo.MessageEmbed{
Description: msgs,
URL: fmt.Sprintf("https://anime.hanami.family/anime/%d", app.Anime),