Start(ctx context.Context) | error | User("@me") または Session.Open の失敗 |
Close() | error | Session.Close の失敗 |
Status() | Status | |
Reply(handler ReplyHandler) | — | 以前の handler を置き換える |
Send(ctx, channelID, replyTo, text string) | (*discordgo.Message, error) | 空のチャンネル ID、API のエラー |
Delete(ctx, channelID, messageID string) | error | 空の ID、API のエラー |
SendFiles(ctx, channelID, replyTo string, paths []string, caption ...string) | (*discordgo.Message, error) | 空のチャンネル ID、パスが 0 個または 10 個超、空のパス、os.Open の失敗 |
SendVoice(ctx, channelID, replyTo, path string, caption ...string) | (*discordgo.Message, error) | 空のチャンネル ID またはパス、os.Open の失敗 |
SendInput(ctx, channelID, replyTo, prompt string) | (*discordgo.Message, error) | 空のチャンネル ID またはプロンプト、UUID の失敗 |
SendSelect(ctx, channelID, replyTo, text string, items []string) | (*discordgo.Message, error) | 空のチャンネル ID またはテキスト、空でない項目が 0 個または 25 個超、UUID の失敗 |
SendMultiSelect(ctx, channelID, replyTo, text string, items []string) | (*discordgo.Message, error) | SendSelect と同じ |
SendStatus(ctx, channelID, replyTo, text string, opts ...StatusOption) | error | 即座に flush した場合の送信 / 編集エラー |
FinishStatus(ctx, channelID string) | error | 削除のエラー、または処理中の編集を待つ間の ctx.Err() |
Save(ctx, att *discordgo.MessageAttachment, dir string) | (string, error) | nil の添付ファイル、空の URL または dir、25 MiB を超えるファイル、200 以外の HTTP ステータス、ファイルシステムのエラー |