From fcbad591dddfd3b83ce795b52743bb565c442c9b Mon Sep 17 00:00:00 2001 From: TopiSenpai Date: Sun, 28 Mar 2021 17:05:12 +0200 Subject: [PATCH] fixed imports --- api/command_thread.go | 2 +- api/events/channel_events.go | 2 +- api/events/dm_event.go | 2 +- api/events/dm_message_event.go | 2 +- api/events/guild_events.go | 2 +- api/events/guild_member_events.go | 2 +- api/events/guild_message_events.go | 2 +- api/events/guild_role_events.go | 2 +- api/events/interaction_events.go | 2 +- api/events/listener_adapter.go | 2 +- api/events/message_event.go | 2 +- api/events/ready_events.go | 2 +- api/guild.go | 2 +- api/restclient.go | 2 +- disgo.go | 4 ++-- internal/cache.go | 2 +- internal/disgo.go | 2 +- internal/disgo_builder.go | 2 +- internal/event_manager.go | 4 ++-- internal/gateway.go | 4 ++-- internal/handlers/all_handlers.go | 2 +- internal/handlers/guild_create_handler.go | 4 ++-- internal/handlers/guild_delete_handler.go | 4 ++-- internal/handlers/guild_member_add_handler.go | 4 ++-- internal/handlers/guild_member_remove_handler.go | 4 ++-- internal/handlers/guild_member_update_handler.go | 4 ++-- internal/handlers/guild_role_create_handler.go | 4 ++-- internal/handlers/guild_role_delete_handler.go | 4 ++-- internal/handlers/guild_role_update_handler.go | 4 ++-- internal/handlers/guild_update_handler.go | 4 ++-- internal/handlers/interaction_create_handler.go | 4 ++-- internal/handlers/interaction_create_webhook_handler.go | 2 +- internal/handlers/message_create_handler.go | 4 ++-- internal/handlers/ready_handler.go | 2 +- internal/restclient.go | 4 ++-- internal/util.go | 2 +- internal/webhook_server.go | 2 +- testbot/testbot.go | 6 +++--- 38 files changed, 55 insertions(+), 55 deletions(-) diff --git a/api/command_thread.go b/api/command_thread.go index dfc6931f..6df7c14e 100644 --- a/api/command_thread.go +++ b/api/command_thread.go @@ -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) diff --git a/api/events/channel_events.go b/api/events/channel_events.go index a6d87907..1c0279c7 100644 --- a/api/events/channel_events.go +++ b/api/events/channel_events.go @@ -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 { diff --git a/api/events/dm_event.go b/api/events/dm_event.go index feb18751..6e84ef32 100644 --- a/api/events/dm_event.go +++ b/api/events/dm_event.go @@ -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 { diff --git a/api/events/dm_message_event.go b/api/events/dm_message_event.go index 44dcd13b..e1a325b4 100644 --- a/api/events/dm_message_event.go +++ b/api/events/dm_message_event.go @@ -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 diff --git a/api/events/guild_events.go b/api/events/guild_events.go index 48d333e0..1939b943 100644 --- a/api/events/guild_events.go +++ b/api/events/guild_events.go @@ -1,7 +1,7 @@ package events import ( - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) // GenericGuildEvent generic api.Guild api.Event diff --git a/api/events/guild_member_events.go b/api/events/guild_member_events.go index dbad193b..862c56a0 100644 --- a/api/events/guild_member_events.go +++ b/api/events/guild_member_events.go @@ -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 { diff --git a/api/events/guild_message_events.go b/api/events/guild_message_events.go index d38aa8c8..de4772d7 100644 --- a/api/events/guild_message_events.go +++ b/api/events/guild_message_events.go @@ -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 diff --git a/api/events/guild_role_events.go b/api/events/guild_role_events.go index 0a674fc4..db36893e 100644 --- a/api/events/guild_role_events.go +++ b/api/events/guild_role_events.go @@ -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 { diff --git a/api/events/interaction_events.go b/api/events/interaction_events.go index 06cc4a07..87fdf2cd 100644 --- a/api/events/interaction_events.go +++ b/api/events/interaction_events.go @@ -3,7 +3,7 @@ package events import ( "errors" - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) // GenericInteractionEvent generic api.Interaction event diff --git a/api/events/listener_adapter.go b/api/events/listener_adapter.go index d8edc4d8..71becb9c 100644 --- a/api/events/listener_adapter.go +++ b/api/events/listener_adapter.go @@ -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 diff --git a/api/events/message_event.go b/api/events/message_event.go index 915c3b4e..39d50f4b 100644 --- a/api/events/message_event.go +++ b/api/events/message_event.go @@ -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 { diff --git a/api/events/ready_events.go b/api/events/ready_events.go index fab6ba0b..5b04d979 100644 --- a/api/events/ready_events.go +++ b/api/events/ready_events.go @@ -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 { diff --git a/api/guild.go b/api/guild.go index 8edcdd34..9b35600e 100644 --- a/api/guild.go +++ b/api/guild.go @@ -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 diff --git a/api/restclient.go b/api/restclient.go index a09244ed..13acef68 100644 --- a/api/restclient.go +++ b/api/restclient.go @@ -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 diff --git a/disgo.go b/disgo.go index aebe6470..1e61da43 100644 --- a/disgo.go +++ b/disgo.go @@ -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 diff --git a/internal/cache.go b/internal/cache.go index 7942cf47..e2fd4206 100644 --- a/internal/cache.go +++ b/internal/cache.go @@ -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 { diff --git a/internal/disgo.go b/internal/disgo.go index 205bf7f0..480a6bfd 100644 --- a/internal/disgo.go +++ b/internal/disgo.go @@ -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 diff --git a/internal/disgo_builder.go b/internal/disgo_builder.go index d587b10b..c567a7b9 100644 --- a/internal/disgo_builder.go +++ b/internal/disgo_builder.go @@ -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 diff --git a/internal/event_manager.go b/internal/event_manager.go index bc391d0c..0e9bcd5f 100644 --- a/internal/event_manager.go +++ b/internal/event_manager.go @@ -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 { diff --git a/internal/gateway.go b/internal/gateway.go index d7a1b1ef..3a88c904 100644 --- a/internal/gateway.go +++ b/internal/gateway.go @@ -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 { diff --git a/internal/handlers/all_handlers.go b/internal/handlers/all_handlers.go index ca09543a..e6a71d6d 100644 --- a/internal/handlers/all_handlers.go +++ b/internal/handlers/all_handlers.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) // GetAllHandlers returns all api.GatewayEventHandler(s) diff --git a/internal/handlers/guild_create_handler.go b/internal/handlers/guild_create_handler.go index fa6e7b12..defa9fdc 100644 --- a/internal/handlers/guild_create_handler.go +++ b/internal/handlers/guild_create_handler.go @@ -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 diff --git a/internal/handlers/guild_delete_handler.go b/internal/handlers/guild_delete_handler.go index 37ab37cd..ecd97c90 100644 --- a/internal/handlers/guild_delete_handler.go +++ b/internal/handlers/guild_delete_handler.go @@ -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 diff --git a/internal/handlers/guild_member_add_handler.go b/internal/handlers/guild_member_add_handler.go index c70e62ee..b587e5a4 100644 --- a/internal/handlers/guild_member_add_handler.go +++ b/internal/handlers/guild_member_add_handler.go @@ -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 diff --git a/internal/handlers/guild_member_remove_handler.go b/internal/handlers/guild_member_remove_handler.go index 82e3bb88..dd0566ea 100644 --- a/internal/handlers/guild_member_remove_handler.go +++ b/internal/handlers/guild_member_remove_handler.go @@ -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 { diff --git a/internal/handlers/guild_member_update_handler.go b/internal/handlers/guild_member_update_handler.go index 9b7f98dd..b5e076b0 100644 --- a/internal/handlers/guild_member_update_handler.go +++ b/internal/handlers/guild_member_update_handler.go @@ -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 diff --git a/internal/handlers/guild_role_create_handler.go b/internal/handlers/guild_role_create_handler.go index a715df2f..a62699ac 100644 --- a/internal/handlers/guild_role_create_handler.go +++ b/internal/handlers/guild_role_create_handler.go @@ -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 { diff --git a/internal/handlers/guild_role_delete_handler.go b/internal/handlers/guild_role_delete_handler.go index 41770ee7..20d0ac55 100644 --- a/internal/handlers/guild_role_delete_handler.go +++ b/internal/handlers/guild_role_delete_handler.go @@ -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 { diff --git a/internal/handlers/guild_role_update_handler.go b/internal/handlers/guild_role_update_handler.go index 0737a45d..de9cb6df 100644 --- a/internal/handlers/guild_role_update_handler.go +++ b/internal/handlers/guild_role_update_handler.go @@ -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 { diff --git a/internal/handlers/guild_update_handler.go b/internal/handlers/guild_update_handler.go index a24ae50d..90def1e5 100644 --- a/internal/handlers/guild_update_handler.go +++ b/internal/handlers/guild_update_handler.go @@ -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 diff --git a/internal/handlers/interaction_create_handler.go b/internal/handlers/interaction_create_handler.go index 09e08506..82072329 100644 --- a/internal/handlers/interaction_create_handler.go +++ b/internal/handlers/interaction_create_handler.go @@ -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 diff --git a/internal/handlers/interaction_create_webhook_handler.go b/internal/handlers/interaction_create_webhook_handler.go index 2f72accf..35252071 100644 --- a/internal/handlers/interaction_create_webhook_handler.go +++ b/internal/handlers/interaction_create_webhook_handler.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) // InteractionCreateWebhookHandler handles api.InteractionCreateWebhookEvent diff --git a/internal/handlers/message_create_handler.go b/internal/handlers/message_create_handler.go index d1229307..b6d32590 100644 --- a/internal/handlers/message_create_handler.go +++ b/internal/handlers/message_create_handler.go @@ -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 diff --git a/internal/handlers/ready_handler.go b/internal/handlers/ready_handler.go index 47076d28..58b3e94d 100644 --- a/internal/handlers/ready_handler.go +++ b/internal/handlers/ready_handler.go @@ -1,7 +1,7 @@ package handlers import ( - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) type readyEventData struct { diff --git a/internal/restclient.go b/internal/restclient.go index 4ab25747..d1d2bfdc 100644 --- a/internal/restclient.go +++ b/internal/restclient.go @@ -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 { diff --git a/internal/util.go b/internal/util.go index 095f4028..e460137b 100644 --- a/internal/util.go +++ b/internal/util.go @@ -5,7 +5,7 @@ import ( "errors" "strings" - "github.com/DiscoOrg/disgo/api" + "github.com/DisgoOrg/disgo/api" ) // IDFromToken returns the applicationID from the token diff --git a/internal/webhook_server.go b/internal/webhook_server.go index b9170b23..91a6dfda 100644 --- a/internal/webhook_server.go +++ b/internal/webhook_server.go @@ -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 { diff --git a/testbot/testbot.go b/testbot/testbot.go index ecee0a4d..824b0dce 100644 --- a/testbot/testbot.go +++ b/testbot/testbot.go @@ -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() {