Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MagnificentPako/c3c707af067acddc29329b330bf4ac0d to your computer and use it in GitHub Desktop.
Save MagnificentPako/c3c707af067acddc29329b330bf4ac0d to your computer and use it in GitHub Desktop.
{
"types": [
{
"type": "Value Type",
"name": "πŸ–Š",
"conformances": [],
"genericParameters": [],
"documentation": " Type representing a message (currently stripped down) ",
"methods": [
{
"name": "πŸ‘€",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": false,
"final": false,
"returnType": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"mood": "❓",
"genericParameters": [],
"documentation": " Returns the author ",
"parameters": []
},
{
"name": "πŸ’¬",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": false,
"final": false,
"returnType": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"mood": "❓",
"genericParameters": [],
"documentation": " Returns the content ",
"parameters": []
},
{
"name": "🏠",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": false,
"final": false,
"returnType": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"mood": "❓",
"genericParameters": [],
"documentation": " Returns the channel ID ",
"parameters": []
}
],
"initializers": [
{
"name": "πŸ†•",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": true,
"final": false,
"genericParameters": [],
"parameters": [
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "author"
},
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "content"
},
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "channelId"
}
]
}
],
"typeMethods": []
},
{
"type": "Class",
"name": "πŸ”Œ",
"conformances": [],
"genericParameters": [],
"documentation": " Main class providing access to Discord API ",
"methods": [
{
"name": "πŸ”ˆ",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": true,
"final": false,
"returnType": {
"type": "NoReturn"
},
"mood": "❗️",
"genericParameters": [],
"documentation": " Send a message to a specific channel ID ",
"parameters": [
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "channelId"
},
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "msg"
}
]
},
{
"name": "πŸ’ž",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": true,
"final": false,
"returnType": {
"type": "NoReturn"
},
"mood": "❗️",
"genericParameters": [],
"documentation": " Add a callable as handler to a specific event. The callable\n is always passed a βšͺ️ and has to cast it to something useful depending\n on the event.\n ",
"parameters": [
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "event"
},
{
"type": {
"type": "Callable",
"arguments": [
{
"type": "NoReturn"
},
{
"type": "Literal",
"name": "βšͺ️"
}
]
},
"name": "callable"
}
]
},
{
"name": "πŸ”₯",
"accessLevel": "πŸ”",
"unsafe": false,
"mutating": true,
"final": false,
"returnType": {
"type": "NoReturn"
},
"mood": "❗️",
"genericParameters": [],
"parameters": [
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "event"
},
{
"type": {
"type": "Literal",
"name": "βšͺ️"
},
"name": "obj"
}
]
},
{
"name": "πŸƒ",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": true,
"final": false,
"returnType": {
"type": "NoReturn"
},
"mood": "❗️",
"genericParameters": [],
"documentation": " Starts the bot ",
"parameters": []
}
],
"initializers": [
{
"name": "πŸ†•",
"accessLevel": "πŸ”“",
"unsafe": false,
"mutating": true,
"final": false,
"genericParameters": [],
"documentation": " Construct a πŸ”Œ from a token ",
"parameters": [
{
"type": {
"package": "s",
"name": "πŸ”‘",
"arguments": []
},
"name": "token"
}
]
}
],
"typeMethods": [],
"final": false
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment