pins

command module
v0.0.0-...-367965b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 14 Imported by: 0

README

pins

List pins from Discord channel, thread, category, or server.

Example usage

DISCORD_TOKEN="YOUR_TOKEN_HERE"
  • Go to the "OAuth2" tab
  • Select "bot" under "Scopes"
  • Select "Read Message History" under "Bot Permissions"
  • Copy the URL and open it in your browser
  • Add the bot to your server
  • Go to the "General Information" tab
  • Copy the "Application ID"
  • Run the program with your guild ID like this:
go run . --guild "710225099923521558" --expr "author_name.size() == 0 || author_name.startsWith(\"EthanThatOneKid\")" --verbose
go run . --guild "710225099923521558" --expr "channel_parent_id == 1055675648296890388" --verbose
Reference
// MessageData is the data for a message in a CEL expression.
type MessageData struct {
	ChannelParentID string
	ChannelID       string
	ChannelName     string
	Timestamp       time.Time
	AuthorID        string
	AuthorName      string
	Text            string
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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