infer

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: ISC Imports: 3 Imported by: 0

Documentation

Overview

Package infer implements reflect functions that package bot uses.

Functions in this package may run recursively forever. This shouldn't happen with Arikawa's structures, but use these functions with care.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelID

func ChannelID(event interface{}) discord.ChannelID

ChannelID looks for fields with name ChannelID, Channel, or in some special cases, ID.

func GuildID

func GuildID(event interface{}) discord.GuildID

GuildID looks for fields with name GuildID, Guild, or in some special cases, ID.

func UserID

func UserID(event interface{}) discord.UserID

UserID looks for fields with name UserID, User, or in some special cases, ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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