Skip to content

Instantly share code, notes, and snippets.

View MinnDevelopment's full-sized avatar
🦀

Florian Spieß MinnDevelopment

🦀
  • Germany
  • 11:17 (UTC +01:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am MinnDevelopment on github.
  • I am minn_minn (https://keybase.io/minn_minn) on keybase.
  • I have a public key whose fingerprint is C9AF 811F 60FA 3356 B96A FAD2 9A24 3B5D 1D41 EBD6

To claim this, I am signing this object:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
void head(int spaces);
void tree(int spaces, int parts, int* ornaments);
char random_ball(void);
int random_color(void);
int* positions(int height, int ornaments);
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.events.GenericEvent;
import net.dv8tion.jda.api.hooks.EventListener;
import net.dv8tion.jda.api.hooks.SubscribeEvent;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.time.Duration;
import java.util.List;
public class ActionMenu extends Menu implements Menu.Page {
private final Message message;
private final List<Button> buttons = new ArrayList<>();
public ActionMenu(Message message) {
this.message = message;
}
public ActionMenu addButton(Button button) {
buttons.add(button);

What is possible?

Slash commands offer a way to integrate your bot commands directly into the Discord UI. However, these commands are still very limited and cannot replace every use-case for now. I'll explain the limitations and possibilities of this new feature a bit here.

Slash Commands work entirely through the Webhook API. Which introduces a number of moderation issues. See the Moderation section below. It also causes some Rate Limit Problems.

Things you can do with slash commands

  • Simple Q/A type commands that just take an input and return an answer
  • Simple commands that have side-effects such as kick/ban/music