Jda: Getting username from deleted message

Created on 6 Jun 2018  路  3Comments  路  Source: DV8FromTheWorld/JDA

Hey, I am working on a logging system for a discord, and was wondering how I can get the name of the user who deleted a message through the JDA API. Currently stuck on this:

`@Override
public void onGuildMessageDelete(GuildMessageDeleteEvent event) {
User user = ;

    Log log = new Log(bot, user, LogType.MESSAGE_DELETE, null);
    log.sendLogMessage();
}`

Thanks

All 3 comments

JDA doesnt has Message caching.

The issue tracker is for bug reports and feature requests. For questions, please join the official JDA Discord Server.

PPZLPZLZZZZ ZHELP :cry:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hitsu420 picture hitsu420  路  6Comments

YukioKeno picture YukioKeno  路  6Comments

Drischdaan picture Drischdaan  路  4Comments

Mas281 picture Mas281  路  3Comments

xeu100 picture xeu100  路  5Comments