Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bot/button/handlers/addadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"
"time"

"github.com/TicketsBot-cloud/common/botpermissions"
permcache "github.com/TicketsBot-cloud/common/permission"
"github.com/TicketsBot-cloud/gdl/objects/channel"
"github.com/TicketsBot-cloud/gdl/permission"
Expand All @@ -19,7 +20,6 @@ import (
"github.com/TicketsBot-cloud/worker/bot/command/context"
"github.com/TicketsBot-cloud/worker/bot/customisation"
"github.com/TicketsBot-cloud/worker/bot/dbclient"
"github.com/TicketsBot-cloud/worker/bot/logic"
"github.com/TicketsBot-cloud/worker/bot/utils"
"github.com/TicketsBot-cloud/worker/i18n"
)
Expand Down Expand Up @@ -224,7 +224,7 @@ func (h *AddAdminHandler) Execute(ctx *context.ButtonContext) {
overwrites := append(ch.PermissionOverwrites, channel.PermissionOverwrite{
Id: id,
Type: mentionableType.OverwriteType(),
Allow: permission.BuildPermissions(logic.StandardPermissions[:]...),
Allow: permission.BuildPermissions(botpermissions.StandardPermissions...),
Deny: 0,
})

Expand Down
4 changes: 2 additions & 2 deletions bot/button/handlers/addsupport.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"
"time"

"github.com/TicketsBot-cloud/common/botpermissions"
permcache "github.com/TicketsBot-cloud/common/permission"
"github.com/TicketsBot-cloud/database"
"github.com/TicketsBot-cloud/gdl/objects/channel"
Expand All @@ -21,7 +22,6 @@ import (
cmdregistry "github.com/TicketsBot-cloud/worker/bot/command/registry"
"github.com/TicketsBot-cloud/worker/bot/customisation"
"github.com/TicketsBot-cloud/worker/bot/dbclient"
"github.com/TicketsBot-cloud/worker/bot/logic"
"github.com/TicketsBot-cloud/worker/bot/utils"
"github.com/TicketsBot-cloud/worker/i18n"
)
Expand Down Expand Up @@ -248,7 +248,7 @@ func updateChannelPermissions(ctx cmdregistry.CommandContext, id uint64, mention
overwrites := append(ch.PermissionOverwrites, channel.PermissionOverwrite{
Id: id,
Type: mentionableType.OverwriteType(),
Allow: permission.BuildPermissions(logic.StandardPermissions[:]...),
Allow: permission.BuildPermissions(botpermissions.StandardPermissions...),
Deny: 0,
})

Expand Down
2 changes: 1 addition & 1 deletion bot/button/handlers/admindebug/server/blacklistreason.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (h *AdminDebugServerBlacklistReasonHandler) Execute(ctx *context.ButtonCont
}

ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
utils.BuildContainerRaw(
utils.BuildAdminContainerRaw(
ctx,
customisation.Red,
"Admin - Debug Server - Blacklist Reason",
Expand Down
2 changes: 1 addition & 1 deletion bot/button/handlers/admindebug/server/entitlements.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (h *AdminDebugServerEntitlementsHandler) Execute(ctx *context.ButtonContext
}

ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
utils.BuildContainerRaw(
utils.BuildAdminContainerRaw(
ctx,
customisation.Green,
"Admin - Debug Server - Entitlements",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (h *AdminDebugServerPanelSettingsModalHandler) Execute(ctx *context.ModalCo
}

ctx.ReplyWith(command.NewEphemeralMessageResponseWithComponents([]component.Component{
utils.BuildContainerRaw(
utils.BuildAdminContainerRaw(
ctx,
customisation.Orange,
"Admin - Debug Server - Panel Settings",
Expand Down
Loading
Loading