Skip to content

Commit

Permalink
fix "whether" typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mlnrDev committed Aug 16, 2022
1 parent 1e918cb commit a2aca7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bot/client.go
Expand Up @@ -78,14 +78,14 @@ type Client interface {

// RequestMembers sends a discord.MessageDataRequestGuildMembers to the specific gateway.Gateway and requests the Member(s) of the specified guild.
// guildID : is the snowflake of the guild to request the members of.
// presence : Weather or not to include discord.Presence data.
// presence : Whether to include discord.Presence data.
// nonce : The nonce to return to the discord.EventGuildMembersChunk.
// userIDs : The snowflakes of the users to request the members of.
RequestMembers(ctx context.Context, guildID snowflake.ID, presence bool, nonce string, userIDs ...snowflake.ID) error

// RequestMembersWithQuery sends a discord.MessageDataRequestGuildMembers to the specific gateway.Gateway and requests the Member(s) of the specified guild.
// guildID : is the snowflake of the guild to request the members of.
// presence : Weather or not to include discord.Presence data.
// presence : Whether to include discord.Presence data.
// nonce : The nonce to return to the discord.EventGuildMembersChunk.
// query : The query to use for the request.
// limit : The number of discord.Member(s) to return.
Expand Down
2 changes: 1 addition & 1 deletion cache/cache.go
Expand Up @@ -12,7 +12,7 @@ type FilterFunc[T any] func(T) bool
// Cache is a simple key value store. They key is always a snowflake.ID.
// The cache provides a simple way to store and retrieve entities. But is not guaranteed to be thread safe as this depends on the underlying implementation.
type Cache[T any] interface {
// Get returns a copy of the entity with the given snowflake and a bool weather it was found or not.
// Get returns a copy of the entity with the given snowflake and a bool whether it was found or not.
Get(id snowflake.ID) (T, bool)

// Put stores the given entity with the given snowflake as key. If the entity is already present, it will be overwritten.
Expand Down

0 comments on commit a2aca7a

Please sign in to comment.