From 9fa5d091b91ce25ae9a728a4556f8806acd9c820 Mon Sep 17 00:00:00 2001 From: chenshengwu Date: Tue, 21 Feb 2023 17:02:57 +0800 Subject: [PATCH] Change package name --- .travis.yml | 2 +- examples/airhorn/main.go | 2 +- examples/auto_moderation/main.go | 2 +- examples/autocomplete/main.go | 2 +- examples/avatar/main.go | 2 +- examples/components/main.go | 6 +++--- examples/context_menus/main.go | 4 ++-- examples/dm_pingpong/main.go | 2 +- examples/modals/main.go | 2 +- examples/pingpong/main.go | 2 +- examples/scheduled_events/main.go | 2 +- examples/slash_commands/main.go | 14 +++++++------- examples/stage_instance/main.go | 2 +- examples/threads/main.go | 2 +- go.mod | 2 +- oauth2_test.go | 2 +- 16 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.travis.yml b/.travis.yml index e80d490bd..3582e48ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ go: env: - GO111MODULE=on install: - - go get github.com/bwmarrin/discordgo + - go get github.com/wu56781234/discordgo - go get -v . - go get -v golang.org/x/lint/golint script: diff --git a/examples/airhorn/main.go b/examples/airhorn/main.go index 646f523f8..96dbb4eba 100644 --- a/examples/airhorn/main.go +++ b/examples/airhorn/main.go @@ -11,7 +11,7 @@ import ( "syscall" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) func init() { diff --git a/examples/auto_moderation/main.go b/examples/auto_moderation/main.go index 9b617d73b..d550dc935 100644 --- a/examples/auto_moderation/main.go +++ b/examples/auto_moderation/main.go @@ -8,7 +8,7 @@ import ( "os/signal" "sync" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Command line flags diff --git a/examples/autocomplete/main.go b/examples/autocomplete/main.go index 55dbc6a39..c2e02674c 100644 --- a/examples/autocomplete/main.go +++ b/examples/autocomplete/main.go @@ -7,7 +7,7 @@ import ( "os" "os/signal" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Bot parameters diff --git a/examples/avatar/main.go b/examples/avatar/main.go index 58fa608fd..84c9f0f56 100644 --- a/examples/avatar/main.go +++ b/examples/avatar/main.go @@ -8,7 +8,7 @@ import ( "net/http" "os" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Variables used for command line parameters diff --git a/examples/components/main.go b/examples/components/main.go index b3feab32a..7c99752c5 100644 --- a/examples/components/main.go +++ b/examples/components/main.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Bot parameters @@ -139,7 +139,7 @@ var ( panic(err) } time.Sleep(time.Second) // Doing that so user won't see instant response. - _, err = s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + _, err = s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Anyways, now when you know how to use single select menus, let's see how multi select menus work. " + "Try calling `/selects multi` command.", Flags: discordgo.MessageFlagsEphemeral, @@ -164,7 +164,7 @@ var ( panic(err) } time.Sleep(time.Second) // Doing that so user won't see instant response. - _, err = s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + _, err = s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "But wait, there is more! You can also auto populate the select menu. Try executing `/selects auto-populated`.", Flags: discordgo.MessageFlagsEphemeral, }) diff --git a/examples/context_menus/main.go b/examples/context_menus/main.go index fda7996cd..e94cc06de 100644 --- a/examples/context_menus/main.go +++ b/examples/context_menus/main.go @@ -8,7 +8,7 @@ import ( "os/signal" "strings" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Bot parameters @@ -85,7 +85,7 @@ var ( i.ApplicationCommandData().TargetID, ) if err != nil { - _, err = s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + _, err = s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: fmt.Sprintf("Mission failed. Cannot send a message to this user: %q", err.Error()), Flags: discordgo.MessageFlagsEphemeral, }) diff --git a/examples/dm_pingpong/main.go b/examples/dm_pingpong/main.go index 37aeb5466..e305b3659 100644 --- a/examples/dm_pingpong/main.go +++ b/examples/dm_pingpong/main.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Variables used for command line parameters diff --git a/examples/modals/main.go b/examples/modals/main.go index 6a48cdcae..06aeaf911 100644 --- a/examples/modals/main.go +++ b/examples/modals/main.go @@ -8,7 +8,7 @@ import ( "os/signal" "strings" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Bot parameters diff --git a/examples/pingpong/main.go b/examples/pingpong/main.go index e7262003d..f284a7346 100644 --- a/examples/pingpong/main.go +++ b/examples/pingpong/main.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Variables used for command line parameters diff --git a/examples/scheduled_events/main.go b/examples/scheduled_events/main.go index 218265f77..e7bb850ce 100644 --- a/examples/scheduled_events/main.go +++ b/examples/scheduled_events/main.go @@ -8,7 +8,7 @@ import ( "os/signal" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Flags diff --git a/examples/slash_commands/main.go b/examples/slash_commands/main.go index a70cd4455..ad386321b 100644 --- a/examples/slash_commands/main.go +++ b/examples/slash_commands/main.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Bot parameters @@ -456,7 +456,7 @@ var ( Type: discordgo.InteractionResponseType(i.ApplicationCommandData().Options[0].IntValue()), }) if err != nil { - s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Something went wrong", }) } @@ -470,7 +470,7 @@ var ( }, }) if err != nil { - s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Something went wrong", }) return @@ -483,7 +483,7 @@ var ( Content: &content, }) if err != nil { - s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Something went wrong", }) return @@ -507,11 +507,11 @@ var ( Content: "Surprise!", }, }) - msg, err := s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + msg, err := s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Followup message has been created, after 5 seconds it will be edited", }) if err != nil { - s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "Something went wrong", }) return @@ -527,7 +527,7 @@ var ( s.FollowupMessageDelete(i.Interaction, msg.ID) - s.FollowupMessageCreate(i.Interaction, true, &discordgo.WebhookParams{ + s.FollowupMessageCreate(i.Interaction, &discordgo.WebhookParams{ Content: "For those, who didn't skip anything and followed tutorial along fairly, " + "take a unicorn :unicorn: as reward!\n" + "Also, as bonus... look at the original interaction response :D", diff --git a/examples/stage_instance/main.go b/examples/stage_instance/main.go index db59dbb48..098011465 100644 --- a/examples/stage_instance/main.go +++ b/examples/stage_instance/main.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Flags diff --git a/examples/threads/main.go b/examples/threads/main.go index 5ea5f8c9c..89f45c4d4 100644 --- a/examples/threads/main.go +++ b/examples/threads/main.go @@ -9,7 +9,7 @@ import ( "strings" "time" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) // Flags diff --git a/go.mod b/go.mod index 107be44e3..f72fd07ea 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/bwmarrin/discordgo +module github.com/wu56781234/discordgo go 1.13 diff --git a/oauth2_test.go b/oauth2_test.go index 1d5451bdf..bfbe29409 100644 --- a/oauth2_test.go +++ b/oauth2_test.go @@ -4,7 +4,7 @@ import ( "log" "os" - "github.com/bwmarrin/discordgo" + "github.com/wu56781234/discordgo" ) func ExampleApplication() {