@@ -34,19 +34,19 @@ var typeChoices = []discord.ApplicationCommandOptionChoiceString{
34
34
35
35
var formatTypeChoices = []discord.ApplicationCommandOptionChoiceString {
36
36
{
37
- Name : FormatTypeEmbed .String (),
37
+ Name : FormatTypeEmbed .Name (),
38
38
Value : string (FormatTypeEmbed ),
39
39
},
40
40
{
41
- Name : FormatTypeText .String (),
41
+ Name : FormatTypeText .Name (),
42
42
Value : string (FormatTypeText ),
43
43
},
44
44
{
45
- Name : FormatTypeLink .String (),
45
+ Name : FormatTypeLink .Name (),
46
46
Value : string (FormatTypeLink ),
47
47
},
48
48
{
49
- Name : FormatTypeLinkWithTitle .String (),
49
+ Name : FormatTypeLinkWithTitle .Name (),
50
50
Value : string (FormatTypeLinkWithTitle ),
51
51
},
52
52
}
@@ -404,7 +404,7 @@ func (b *Bot) OnSubredditList(data discord.SlashCommandInteractionData, event *e
404
404
if ! sub .LinkButton {
405
405
linkButton = "disabled"
406
406
}
407
- content += fmt .Sprintf ("- %s - type: `%s` - format: `%s` - role: %s - proxy: %s - link-button: `%s`\n " , formatSubreddit (sub .Subreddit , true ), strings .Title (sub .Type ), sub .FormatType .String (), role , proxy , linkButton )
407
+ content += fmt .Sprintf ("- %s - type: `%s` - format: `%s` - role: %s - proxy: %s - link-button: `%s`\n " , formatSubreddit (sub .Subreddit , true ), strings .Title (sub .Type ), sub .FormatType .Name (), role , proxy , linkButton )
408
408
}
409
409
410
410
_ = event .CreateMessage (discord.MessageCreate {
0 commit comments