UNPKG

deleo

Version:

Deleo, a TypeScript-based CLI tool, simplifies Discord content management by enabling efficient deletion of messages in open DMs or specific channels.

11 lines (10 loc) 379 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), Object.defineProperty(exports, "getChannelName", { enumerable: !0, get: function() { return getChannelName; } }); const getChannelName = (e)=>"DM" === e.type ? e.recipient.username : "GROUP_DM" === e.type ? e.name ? e.name : e.recipients.map((e)=>e.username).join(", ") : e.name;