Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit fd5c0a17532d4e9e37b5a4d6af341105463010f7
parent 96428e6467e17e7fb6498118411bc87af62d75c9
Author: Daniel <23189912+danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 19:55:09 +0300

Update id.ts
Diffstat:
Mlib/commands/id.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/id.ts b/lib/commands/id.ts @@ -2,7 +2,7 @@ export default home_scope => { const { message } = home_scope; const rep = []; ['channel', 'user', 'role'].forEach(n => - message[n + 's'].each(o => rep.push(n + ' id: `' + o.id + '`'))); + message.mentions[n + 's'].each(o => rep.push(n + ' id: `' + o.id + '`'))); // Joining an empty array yields an empty string which is false const reply = rep.join(', ') || `User ID: \`${message.author.id}\` Author: ${message.author}