Skip to content

Instantly share code, notes, and snippets.

@Rapptz
Rapptz / docs.md
Last active October 28, 2022 14:40 — forked from Zomatree/docs.md

Overview

messages can be sent with the components key to add buttons and other components (when discord brings them out), you can edit and add new buttons via editing the message, this is useful for the disabled key to stop people from clicking it.

Example Payload

{
    "content": "this is an example message for components",
    "components": [
        {"type": 1, "components": [
 {"type": 2, "style": 2, "label": "Button 1", "custom_id": "1"},
using Discord;
namespace Yonom.DiscordTools
{
static class DiscordAvatar
{
// for documentation purposes only
private static enum DefaultAvatars
{
blurple = 0,