From b92911fb6ccd11910f394eef02090071d8d45114 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 31 May 2025 02:26:53 +0200 Subject: build(gokord): upgrade to v0.9.0 --- commands/credits.go | 43 +++++++++++++++++++++---------------------- 1 file changed, 21 insertions(+), 22 deletions(-) (limited to 'commands/credits.go') diff --git a/commands/credits.go b/commands/credits.go index 62bbcac..1914950 100644 --- a/commands/credits.go +++ b/commands/credits.go @@ -7,28 +7,27 @@ import ( func Credits(s *discordgo.Session, i *discordgo.InteractionCreate) { resp := utils.NewResponseBuilder(s, i) - err := resp.Embeds([]*discordgo.MessageEmbed{ - { - Type: discordgo.EmbedTypeRich, - Title: "Crédits", - Description: "Auteur du bot : @anhgelus (https://github.com/anhgelus)\nLangage : Go 1.24\nLicence : AGPLv3", - Color: utils.Success, - Fields: []*discordgo.MessageEmbedField{ - { - Name: "anhgelus/gokord", - Value: "v0.6.3 - MPL 2.0", - Inline: true, - }, - { - Name: "bwmarrin/discordgo", - Value: "v0.28.1 - BSD-3-Clause", - Inline: true, - }, - { - Name: "redis/go-redis/v9", - Value: "v9.8.0 - BSD-2-Clause", - Inline: true, - }, + err := resp.AddEmbed(&discordgo.MessageEmbed{ + + Type: discordgo.EmbedTypeRich, + Title: "Crédits", + Description: "Auteur du bot : @anhgelus (https://github.com/anhgelus)\nLangage : Go 1.24\nLicence : AGPLv3", + Color: utils.Success, + Fields: []*discordgo.MessageEmbedField{ + { + Name: "anhgelus/gokord", + Value: "v0.9.0 - MPL 2.0", + Inline: true, + }, + { + Name: "bwmarrin/discordgo", + Value: "v0.29.0 - BSD-3-Clause", + Inline: true, + }, + { + Name: "redis/go-redis/v9", + Value: "v9.8.0 - BSD-2-Clause", + Inline: true, }, }, }).Send() -- cgit v1.2.3