Skip to content

Commit 0ce9f2a

Browse files
authored
Cleanup for cv2 (#20)
Cleanup
1 parent f79f2f6 commit 0ce9f2a

21 files changed

Lines changed: 39 additions & 90 deletions

bot/button/handlers/close.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (h *CloseHandler) Execute(ctx *cmdcontext.ButtonContext) {
5757
}
5858

5959
if closeConfirmation {
60-
container := utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleCloseConfirmation, ctx.PremiumTier(), []component.Component{
60+
container := utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleCloseConfirmation, []component.Component{
6161
component.BuildTextDisplay(component.TextDisplay{Content: fmt.Sprintf("<@%d>: %s", ctx.InteractionUser().Id, ctx.GetMessage(i18n.MessageCloseConfirmation))}),
6262
component.BuildActionRow(component.BuildButton(component.Button{
6363
Label: ctx.GetMessage(i18n.TitleClose),

bot/command/impl/admin/adminlistguildentitlements.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ func (AdminListGuildEntitlementsCommand) Execute(ctx registry.CommandContext, gu
118118
ctx,
119119
customisation.Orange,
120120
i18n.Admin,
121-
ctx.PremiumTier(),
122121
values,
123122
),
124123
}))

bot/command/impl/admin/adminlistuserentitlements.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func (AdminListUserEntitlementsCommand) Execute(ctx registry.CommandContext, use
7272
ctx,
7373
customisation.Orange,
7474
i18n.Admin,
75-
ctx.PremiumTier(),
7675
values,
7776
),
7877
}))

bot/command/impl/admin/adminrecache.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ func (AdminRecacheCommand) Execute(ctx registry.CommandContext, providedGuildId
109109
ctx,
110110
customisation.Orange,
111111
"Admin - Recache",
112-
ctx.PremiumTier(),
113112
[]component.Component{
114113
component.BuildTextDisplay(component.TextDisplay{
115114
Content: fmt.Sprintf("**%s** has been recached successfully.\n\n**Guild ID:** %d\n**Time Taken:** %s", guild.Name, guildId, time.Since(currentTime).Round(time.Millisecond)),

bot/command/impl/general/invite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (c InviteCommand) GetExecutor() interface{} {
3636

3737
func (InviteCommand) Execute(ctx registry.CommandContext) {
3838
ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
39-
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleInvite, ctx.PremiumTier(), []component.Component{
39+
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleInvite, []component.Component{
4040
component.BuildActionRow(component.BuildButton(component.Button{
4141
Label: ctx.GetMessage(i18n.ClickHere),
4242
Style: component.ButtonStyleLink,

bot/command/impl/general/jumptotop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (JumpToTopCommand) Execute(ctx registry.CommandContext) {
6464
}
6565

6666
if _, err := ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
67-
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleJumpToTop, ctx.PremiumTier(), components),
67+
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleJumpToTop, components),
6868
})); err != nil {
6969
ctx.HandleError(err)
7070
return

bot/command/impl/general/vote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (c VoteCommand) Execute(ctx registry.CommandContext) {
9595
}
9696

9797
if _, err := ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
98-
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleVote, ctx.PremiumTier(), []component.Component{
98+
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleVote, []component.Component{
9999
componentBody,
100100
component.BuildSeparator(component.Separator{Divider: utils.Ptr(false)}),
101101
buildVoteComponent(ctx, true),

bot/command/impl/settings/addadmin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func (c AddAdminCommand) Execute(ctx registry.CommandContext, id uint64) {
6262

6363
// Send confirmation message
6464
if _, err := ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
65-
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleAddAdmin, ctx.PremiumTier(), []component.Component{
65+
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleAddAdmin, []component.Component{
6666
component.BuildTextDisplay(component.TextDisplay{
6767
Content: ctx.GetMessage(i18n.MessageAddAdminConfirm, mention),
6868
}),

bot/command/impl/settings/addsupport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (c AddSupportCommand) Execute(ctx registry.CommandContext, id uint64) {
6666

6767
// Send confirmation message
6868
if _, err := ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
69-
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleAddSupport, ctx.PremiumTier(), []component.Component{
69+
utils.BuildContainerWithComponents(ctx, customisation.Green, i18n.TitleAddSupport, []component.Component{
7070
component.BuildTextDisplay(component.TextDisplay{
7171
Content: ctx.GetMessage(i18n.MessageAddSupportConfirm, mention),
7272
}),

bot/command/impl/settings/language.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ func (c *LanguageCommand) Execute(ctx registry.CommandContext) {
7979
ctx,
8080
customisation.Green,
8181
i18n.TitleLanguage,
82-
ctx.PremiumTier(),
8382
innerComponents,
8483
))))
8584
}

0 commit comments

Comments
 (0)