Discord.SYSl (Discontinued)

The Discord.SYSl Lib (DISCONTINUED)

essentially just a Discord API wrapper in SYSl

This Lib is discontinued!!

Description

This Lub is a Discord Bot API wrapper for SYSlang.

It has been discontinued thanks to Discord’s latest updates.

Import Lib

To call this lib, or to use it in your script use lang-imp Discord.SYSl. Unless you are using SYStemware v51.7 or above, you will also need to import SYSnd on your machine; just type lang-imp SYSnd from the SYSlang CLI.

Some code definitions & snippets

For a basic bot already written in Discord.SYSl (minus some important files that you will need to import yourself) you can check SYSbot’s GitHub Repo

This is equal to a const for this lib; only works for const of token. This allows the lib to use a token provided by Discord’s Developer Portal to login to your bot. You can also set it up like SYSbot and make it retrieve the token from a file on a server.

Tells the script that this is Discord Lib pendant, and also works as an await. When used, no matter if top or bottom of script, SYSl will read the token, login and set the status for this check to pass.

Set’s the bot’s status, if custom. If you simply want the bot to be idle (default) leave this out. Adding this in your Discord.ready without args will cause the script to crash.

Possible args are: ‘idle’, ‘online’, ‘offline’ & ‘odd’. Any of these can be followed by streaming: 'stream title', 'streamURL', listening: 'track name or whatever you feel like', or watching: 'video name or something'.

Discord.SYSl had integrated NSFW management. Unfortunately it was one of the first features dropped thanks to Discord’s Updates.

Reference to Guild. Can be used to abandon server, or create a server invite.

Message.

Message content.

Pings. Yeah, that’s about it.

Used to reference the bot’s self. Only really useful for renaming and pinging self.

Only used to leave servers. (sometimes the script gets stuck and dupes this command).

Return