What do you want to save?
Add Code snippet
New code examples
-
C# 2021-10-19 18:51:04
oauth2 authentication .net core example
using System.Net.Http; using System.Net.Http.Headers; using System.Security.Claims; using System.Text.Json; using Microsoft.AspNetCore.Authentication; using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.OAuth; usin... Add solution -
Javascript 2021-10-18 15:03:05
Discord.js ban command
// Import the discord.js module const Discord = require('discord.js'); // Create an instance of a Discord client const client = new Discord.Client(); /** * The ready event is vital, it means that only _after_ this will your bot start reacting to inform... Add solution -
Javascript 2021-10-17 17:23:06
channel info discord.js
// COMPLICATED SCRIPT DONT DISLIKE IF YOU CANT UNDERSTAND // client.on('message', message => { if (message.content.toLowerCase() === prefix + 'channel') { if (message.author.bot) return; if (UtilCommandsDisable.has(message.guild.id... Add solution -
Javascript 2021-10-17 05:58:04
how to code welcome messages
// This is the needed event to use the welcome! bot.on('guildMemberAdd', async newMember => { // IMPORTANT NOTE: Make Sure To Use async and rename bot to client or whatever name you have for your bot events! const welcomeChannel = newMember.gui... Add solution -
Javascript 2021-10-14 01:56:06
discord.js clear console
// DONT DISLIKE IF YOU CANT UNDERSTAND // client.on('message', message => { if (message.author.bot) return; if (message.content.toLowerCase().startsWith(prefix + 'clear console')) { if (message.author.id === 'ADMIN-ID-HERE' || message.... Add solution -
Python 2021-10-14 00:58:04
how to make a discord moderation bot python
import discord class MyClient(discord.Client): async def on_ready(self): print('Logged on as', self.user) async def on_message(self, message): word_list = ['cheat', 'cheats', 'hack', 'hacks', 'internal', 'external', 'ddos', 'den... Add solution -
Other 2021-10-12 06:30:06
welcome discord.js
// This is the needed event to use the welcome! bot.on('guildMemberAdd', async newMember => { // IMPORTANT NOTE: Make Sure To Use async and rename bot to client or whatever name you have for your bot events! const welcomeChannel = newMember.gui... Add solution