Simp-O-Matic

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

commit af8f828db3eb1c7c3001374ef8b836ad04c1c9de
parent b34b7468158de8845a81eac37728e3821c8e297e
Author: Daniel <23189912+danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 19:50:06 +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 @@ -1,7 +1,7 @@ export default home_scope => { const { message } = home_scope; const rep = []; - ['channel', 'user', 'role'].each(n => + ['channel', 'user', 'role'].forEach(n => message[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}\`