request

package
v24.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package request handles context manipulations to make sure request information is properly propagated.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGuildID

func GetGuildID(ctx context.Context) (snowflake.Snowflake, bool)

GetGuildID retrieves the guild id from a context, if it exists

func WithGuildID

func WithGuildID(ctx context.Context, gid snowflake.Snowflake) context.Context

WithGuildID provided a derived context including the provided guild id value

Types

type ContextKey

type ContextKey string

ContextKey is a wrapper type for our keys attached to a context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL