infer

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: ISC Imports: 3 Imported by: 2

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.Snowflake

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

func GuildID

func GuildID(event interface{}) discord.Snowflake

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

func UserID

func UserID(event interface{}) discord.Snowflake

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