Skip to content

Instantly share code, notes, and snippets.

View LautyDev's full-sized avatar

LautyDev LautyDev

View GitHub Profile
@devomman
devomman / activate-office-windows-mac.md
Last active November 17, 2024 19:52
Microsoft Office Active or Windows Activation | Microsoft Office Activate for Mac - Free Guide

✅ Activate Microsoft Office or Windows

💠 Windows User:

  1. Download OS & Office Link: https://files.rg-adguard.net/version/5f2ad9c6-e111-76e8-06d1-56d44c136bae
  2. Open PowerShell (Not CMD). To do that, right-click on the Windows start menu and select PowerShell or Terminal.
  3. Copy and paste the code below and press enter
irm https://get.activated.win | iex
  1. You will see the activation options.
@LautyDev
LautyDev / code.ts
Created April 14, 2024 19:26
How to know if a message is a poll (Discord)
message.activity === null &&
message.cleanContent === '' &&
message.roleSubscriptionData === null &&
message.components.length === 0 &&
message.system === false &&
message.webhookId === null &&
message.type === 0 &&
message.attachments.size === 0 &&
message.embeds.length === 0 &&
message.applicationId === null &&
// Poll example Discord.js V14.15.1
import { PollData, PollLayoutType } from 'discord.js';
const poll: PollData = {
question: {
text: 'PHP is good?',
},
answers: [
{