-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding existing docs to the wiki #1
Open
vaporvee
wants to merge
12
commits into
disgoorg:master
Choose a base branch
from
vaporvee:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
bfedb27
upgraded requirements
vaporvee faacce9
fixed index.md / getting-started.md issues
vaporvee 60d048c
added external links
vaporvee f103556
removed disgoplayer and log
vaporvee 6124b82
filled with basic info from the readmes
vaporvee 3e70e29
added features list
vaporvee e408650
added some hacks
vaporvee 676073f
changed button icon
vaporvee 8062937
deleted another disgoplayer reference
vaporvee 284b7c1
added generated docs will sort them next
vaporvee 2697070
fixed important stuff with packages docs
vaporvee 35c7ed0
added generated docs for discolink
vaporvee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let logo_title = document.getElementsByClassName('md-header__topic')[0] | ||
logo_title.className = 'md-header__button md-header__topic' | ||
|
||
logo_title.onclick = function() { | ||
location.href = document.location.origin; | ||
}; | ||
logo_title.onmouseover = function(){ | ||
document.documentElement.style.cursor = 'pointer'; | ||
} | ||
logo_title.onmouseout = function(){ | ||
document.documentElement.style.cursor = 'initial'; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Full Ping Pong example | ||
|
||
A full Ping Pong example can also be found [here](https://github.com/disgoorg/disgo/blob/master/_examples/ping_pong/example.go) | ||
|
||
## Other examples | ||
|
||
You can find examples [here](https://github.com/disgoorg/disgo/tree/master/_examples) | ||
|
||
There is also a bot template with commands & db [here](https://github.com/disgoorg/bot-template) | ||
|
||
or in these projects: | ||
|
||
* [DisGo-Butler](https://github.com/disgoorg/disgo-butler) | ||
* [Reddit-Discord-Bot](https://github.com/TopiSenpai/Reddit-Discord-Bot) | ||
* [Kitsune-Bot](https://github.com/TopiSenpai/Kitsune-Bot) | ||
* [KittyBot](https://github.com/KittyBot-Org/KittyBotGo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
* Full Rest API coverage | ||
* [Gateway](https://discord.com/developers/docs/topics/gateway) | ||
* [Sharding](https://discord.com/developers/docs/topics/gateway#sharding) | ||
* [HTTP Interactions](https://discord.com/developers/docs/interactions/slash-commands#receiving-an-interaction) | ||
* [Application Commands](https://discord.com/developers/docs/interactions/application-commands) | ||
* [Message Components](https://discord.com/developers/docs/interactions/message-components) | ||
* [Modals](https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-response-object-modal) | ||
* [Stage Instance](https://discord.com/developers/docs/resources/stage-instance) | ||
* [Guild Template](https://discord.com/developers/docs/resources/guild-template) | ||
* [Sticker](https://discord.com/developers/docs/resources/sticker) | ||
* [RateLimit](https://discord.com/developers/docs/topics/rate-limits) | ||
* [Webhook](https://discord.com/developers/docs/resources/webhook) | ||
* [OAuth2](https://discord.com/developers/docs/topics/oauth2) | ||
* [Threads](https://discord.com/developers/docs/topics/threads) | ||
* [Guild Scheduled Event](https://discord.com/developers/docs/resources/guild-scheduled-event) | ||
* [Voice](https://discord.com/developers/docs/topics/voice-connections) | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,57 @@ | ||
welcome | ||
### Installing | ||
|
||
```sh | ||
$ go get github.com/disgoorg/disgo | ||
``` | ||
|
||
### Building a DisGo Instance | ||
|
||
Build a bot client to interact with the Discord API | ||
```go | ||
package main | ||
|
||
import ( | ||
"context" | ||
"os" | ||
"os/signal" | ||
"syscall" | ||
|
||
"github.com/disgoorg/disgo" | ||
"github.com/disgoorg/disgo/bot" | ||
"github.com/disgoorg/disgo/events" | ||
"github.com/disgoorg/disgo/gateway" | ||
) | ||
|
||
func main() { | ||
client, err := disgo.New("token", | ||
// set gateway options | ||
bot.WithGatewayConfigOpts( | ||
// set enabled intents | ||
gateway.WithIntents( | ||
gateway.IntentGuilds, | ||
gateway.IntentGuildMessages, | ||
gateway.IntentDirectMessages, | ||
), | ||
), | ||
// add event listeners | ||
bot.WithEventListenerFunc(func(e *events.MessageCreate) { | ||
// event code here | ||
}), | ||
) | ||
if err != nil { | ||
panic(err) | ||
} | ||
// connect to the gateway | ||
if err = client.OpenGateway(context.TODO()); err != nil { | ||
panic(err) | ||
} | ||
|
||
s := make(chan os.Signal, 1) | ||
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM) | ||
<-s | ||
} | ||
``` | ||
|
||
### Logging | ||
|
||
DisGo uses [slog](https://pkg.go.dev/log/slog) for logging. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cant you do this with css? lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah was in my js file forgot about it lmao