redo discord mocks
This commit is contained in:
parent
f4718f979a
commit
dfbb9e2bca
19 changed files with 223 additions and 105 deletions
9
types/fixtures/guild.go
Normal file
9
types/fixtures/guild.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package fixtures
|
||||
|
||||
import "git.sapphic.engineer/roleypoly/v4/types"
|
||||
|
||||
var (
|
||||
Guild = types.DiscordGuild{
|
||||
ID: "1312",
|
||||
}
|
||||
)
|
12
types/fixtures/member.go
Normal file
12
types/fixtures/member.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package fixtures
|
||||
|
||||
import "git.sapphic.engineer/roleypoly/v4/types"
|
||||
|
||||
var (
|
||||
Member = types.DiscordMember{
|
||||
User: User,
|
||||
Nick: "Doll",
|
||||
Permissions: 0,
|
||||
Roles: []string{"role1", "role2"},
|
||||
}
|
||||
)
|
10
types/fixtures/user.go
Normal file
10
types/fixtures/user.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package fixtures
|
||||
|
||||
import "git.sapphic.engineer/roleypoly/v4/types"
|
||||
|
||||
var (
|
||||
User = types.DiscordUser{
|
||||
Username: "41666",
|
||||
ID: "41666",
|
||||
}
|
||||
)
|
|
@ -1,3 +1,5 @@
|
|||
package types
|
||||
|
||||
type DiscordGuild struct{}
|
||||
type DiscordGuild struct {
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue