func (m *IDMap) Snowflake(name string) discord.Snowflake {
	m.mu.RLock()
	defer m.mu.RUnlock()
	return m.snowflakeHeldRLock(name)
}
Snowflake returns the Discord ID from an IRC name.

It returns the zero snowflake if missing.
It panics if passed the empty string.
package idmap
import (
	"fmt"
	"strconv"
	"strings"
	"sync"
	"github.com/diamondburned/arikawa/discord"
)
type IDMap struct {
	forward  map[discord.Snowflake]string
	backward map[string]discord.Snowflake
	mu       sync.RWMutex
}
func New() *IDMap {
	return &IDMap{
		forward:  make(map[discord.Snowflake]string),
		backward: make(map[string]discord.Snowflake),
	}
}
func (m *IDMap) Name(id discord.Snowflake) string {
	m.mu.RLock()
	defer m.mu.RUnlock()
	return m.nameHeldRLock(id)
}