Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Mar 28, 2021
1 parent 93b6b36 commit fcbad59
Show file tree
Hide file tree
Showing 38 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion api/command_thread.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
/*import (
"github.com/chebyrash/promise"
"github.com/DiscoOrg/disgo/internal/events"
"github.com/DisgoOrg/disgo/internal/events"
)
// CommandThread allows you to follow up Interactions (https://discord.com/developers/docs/interactions/slash-commands)
Expand Down
2 changes: 1 addition & 1 deletion api/events/channel_events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// GenericChannelEvent is called upon receiving an event in a api.Channel
type GenericChannelEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/events/dm_event.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// GenericDMEvent is a generic dm channel event
type GenericDMEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/events/dm_message_event.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package events

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// GenericDMMessageEvent generic api.DMChannel api.Message api.Event
Expand Down
2 changes: 1 addition & 1 deletion api/events/guild_events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package events

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// GenericGuildEvent generic api.Guild api.Event
Expand Down
2 changes: 1 addition & 1 deletion api/events/guild_member_events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// GenericGuildMemberEvent generic api.Member event
type GenericGuildMemberEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/events/guild_message_events.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package events

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// GenericGuildMessageEvent indicates that we received a api.Message api.Event in a api.Guild
Expand Down
2 changes: 1 addition & 1 deletion api/events/guild_role_events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// GenericGuildRoleEvent generic api.Role event
type GenericGuildRoleEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/events/interaction_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package events
import (
"errors"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// GenericInteractionEvent generic api.Interaction event
Expand Down
2 changes: 1 addition & 1 deletion api/events/listener_adapter.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package events

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// ListenerAdapter lets you override the handles for receiving events
Expand Down
2 changes: 1 addition & 1 deletion api/events/message_event.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// GenericMessageEvent generic api.Message event
type GenericMessageEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/events/ready_events.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package events

import "github.com/DiscoOrg/disgo/api"
import "github.com/DisgoOrg/disgo/api"

// ReadyEvent indicates we received the ReadyEvent from the api.Gateway
type ReadyEvent struct {
Expand Down
2 changes: 1 addition & 1 deletion api/guild.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

"github.com/DiscoOrg/disgo/api/endpoints"
"github.com/DisgoOrg/disgo/api/endpoints"
)

// PremiumTier tells you the boost level of a guild
Expand Down
2 changes: 1 addition & 1 deletion api/restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package api
import (
"errors"

"github.com/DiscoOrg/disgo/api/endpoints"
"github.com/DisgoOrg/disgo/api/endpoints"
)

// Errors when connecting to discord
Expand Down
4 changes: 2 additions & 2 deletions disgo.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package disgo

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/internal"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/internal"
)

// New Initialises a new Disgo client
Expand Down
2 changes: 1 addition & 1 deletion internal/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

func newCacheImpl(memberCachePolicy api.MemberCachePolicy) api.Cache {
Expand Down
2 changes: 1 addition & 1 deletion internal/disgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// New creates a new api.Disgo instance
Expand Down
2 changes: 1 addition & 1 deletion internal/disgo_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// NewBuilder returns a new api.DisgoBuilder instance
Expand Down
4 changes: 2 additions & 2 deletions internal/event_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/internal/handlers"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/internal/handlers"
)

func newEventManagerImpl(disgo api.Disgo, listeners []api.EventListener) api.EventManager {
Expand Down
4 changes: 2 additions & 2 deletions internal/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/gorilla/websocket"
log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/endpoints"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/endpoints"
)

func newGatewayImpl(disgo api.Disgo) api.Gateway {
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/all_handlers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// GetAllHandlers returns all api.GatewayEventHandler(s)
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_create_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// GuildCreateHandler handles api.GuildCreateGatewayEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_delete_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// GuildDeleteHandler handles api.GuildDeleteGatewayEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_member_add_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// GuildMemberAddHandler handles api.GuildMemberAddGatewayEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_member_remove_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

type guildMemberRemoveData struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_member_update_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// GuildMemberUpdateHandler handles api.GuildMemberUpdateGatewayEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_role_create_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

type roleCreateData struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_role_delete_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

type roleDeleteData struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_role_update_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

type roleUpdateData struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/guild_update_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// GuildUpdateHandler handles api.GuildUpdateGatewayEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/interaction_create_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// InteractionCreateHandler handles api.InteractionCreateGatewayEvent
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/interaction_create_webhook_handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// InteractionCreateWebhookHandler handles api.InteractionCreateWebhookEvent
Expand Down
4 changes: 2 additions & 2 deletions internal/handlers/message_create_handler.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

// MessageCreateHandler handles api.MessageCreateGatewayEvent
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/ready_handler.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handlers

import (
"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

type readyEventData struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/endpoints"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/endpoints"
)

func newRestClientImpl(disgo api.Disgo, token string) api.RestClient {
Expand Down
2 changes: 1 addition & 1 deletion internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"strings"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

// IDFromToken returns the applicationID from the token
Expand Down
2 changes: 1 addition & 1 deletion internal/webhook_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/gorilla/mux"
log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api"
)

func newWebhookServerImpl(disgo api.Disgo, listenURL string, listenPort int, publicKey string) api.WebhookServer {
Expand Down
6 changes: 3 additions & 3 deletions testbot/testbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

log "github.com/sirupsen/logrus"

"github.com/DiscoOrg/disgo"
"github.com/DiscoOrg/disgo/api"
"github.com/DiscoOrg/disgo/api/events"
"github.com/DisgoOrg/disgo"
"github.com/DisgoOrg/disgo/api"
"github.com/DisgoOrg/disgo/api/events"
)

func main() {
Expand Down

0 comments on commit fcbad59

Please sign in to comment.