question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discord Integration for Minecraft (lol)

See original GitHub issue

Question

Hey, I’m a fairly new Java developer who has experience in Javascript, Lua & a little C#… I’m trying to create a Minecraft Client with Discord Integration using JDA, but since 4.2.0 has removed AccountType.CLIENT I am forced to use 4.1.1 (I think it is, anyway it’s the second latest release) but in using that, there is some issues with some of the methods and such…

I’m trying to use the getTextChannelById() but it always seems to return null… I assume this is because of using an outdated version and all that, anyone knows of a better way to do this without using something less efficient please share, and I really am trying to avoid webhooks or bots.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

20reactions
Atlas7005commented, Aug 25, 2020

Personally, I don’t care what Discord ToS says… I don’t have to follow ToS, I can choose to.

7reactions
Atlas7005commented, Aug 25, 2020

To answer your question: getTextChannelById can be null for a number of reasons, among them

  • wrong ID
  • bot is not in the same guild
  • JDA hasn’t finished loading
  • possibly due to old/broke version? though 4.1 should still be okish
  • broken AccountType.CLIENT support (see below)

If you’re looking for support, you should visit the JDA Discord.

Obligatory note regarding Selfbots:

  • No, it is not your choice. You are using discord, thus you have to play by their rulebook. But by all means, don’t let me stop you from getting yourself banned!
  • JDA has only removed AccountType.CLIENT recently, but dropped active support over a year ago. It’s most likely broken in several ways.
  • Since it’s only part of an old release, it has no future. 4.1 will stop working eventually, and then your bot is useless.

TL;DR: Don’t do selfbots, kids.

An actual reply, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord Integration Forge - Mods - Minecraft - CurseForge
Features · Send chat messages from discord to minecraft and back · /discord command which sends an invite url to the sender ·...
Read more >
DiscordRewards | SpigotMC - High Performance Minecraft
:LOL: This plugin is a Spicord addon that rewards in-game your players when they reach a certain amount of messages in your discord...
Read more >
Is there a mod that links discord chat to a Minecraft server?
I believe there is one that integrates Twitch chat, but wasn't sure for Discord. 2.
Read more >
How to Connect League of Legends to Discord | TGG
Step by step guide to use League of Legends with Better Discord · Download the “Better” version of the program and install it,...
Read more >
DiscordSRV FULL Setup | Minecraft Discord Plugin - YouTube
Discord to Minecraft Server Plugin. DiscordSRV is one of the best plugins to link your server to discord server to Minecraft server.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found