Skip to content

Commit

Permalink
Change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshengwu committed Feb 21, 2023
1 parent 4bda157 commit 9fa5d09
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/airhorn/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"syscall"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/auto_moderation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"sync"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Command line flags
Expand Down
2 changes: 1 addition & 1 deletion examples/autocomplete/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"os/signal"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Bot parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/avatar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"net/http"
"os"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Variables used for command line parameters
Expand Down
6 changes: 3 additions & 3 deletions examples/components/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Bot parameters
Expand Down Expand Up @@ -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,
Expand All @@ -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,
})
Expand Down
4 changes: 2 additions & 2 deletions examples/context_menus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"strings"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Bot parameters
Expand Down Expand Up @@ -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,
})
Expand Down
2 changes: 1 addition & 1 deletion examples/dm_pingpong/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/signal"
"syscall"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Variables used for command line parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/modals/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"strings"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Bot parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/pingpong/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/signal"
"syscall"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Variables used for command line parameters
Expand Down
2 changes: 1 addition & 1 deletion examples/scheduled_events/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/signal"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Flags
Expand Down
14 changes: 7 additions & 7 deletions examples/slash_commands/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Bot parameters
Expand Down Expand Up @@ -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",
})
}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/stage_instance/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Flags
Expand Down
2 changes: 1 addition & 1 deletion examples/threads/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

// Flags
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/bwmarrin/discordgo
module github.com/wu56781234/discordgo

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion oauth2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"os"

"github.com/bwmarrin/discordgo"
"github.com/wu56781234/discordgo"
)

func ExampleApplication() {
Expand Down

0 comments on commit 9fa5d09

Please sign in to comment.