Skip to content

Tolga1452/BetterDiscord-Plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

EnableCustomFunctions.plugin.js

Avaible functions

  • findByProps(...props)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

findByProps('getAPIBaseURL')

findByProps

  • getActionHandler(store, actionHandler)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

getActionHandler('ChannelStore', 'CHANNEL_CREATE');

getActionHandler

  • getFunction(functionName)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

getFunction('getChannel')

getFunction

  • getStore(store)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example

getStore('ChannelStore')

getStore

  • searchFunctions(query)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

searchFunctions('user')

searchFunctions

  • searchStores(query)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Contributors: syndicated#6591 (112511479806246912)

Example:

searchStores('channel')

searchStores

  • searchExperiment(experiment)

Author: Davri#0015 (457579346282938368)

Example:

searchExperiment('2021-12_soundboard')

searchExperiment

  • listServerFeatures()

Author: HumanCat222#0001 (676018450115854347)

Example:

listServerFeatures()

listServerFeatures

  • getAllFunctions()

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

getAllFunctions()

getAllFunctions

  • addAllFeatures(serverId)

Author: proxy#1000 (711325368333893722)

Example:

addAllFeatures('1089540433010491392')

addAllFeatures

  • addFeatures(serverId, features)

Author: proxy#1000 (711325368333893722)

Example:

addFeatures('1089540433010491392', ['INTERNAL_EMPLOYEE_ONLY'])

addFeatures

  • enableExperiments()

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

enableExperiments()

enableExperiments

  • listExperiments()

Author: proxy#1000 (711325368333893722)

Example:

listExperiments()

listExperiments

  • convertToMedia(channelId)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

convertToMedia('1093451591400558613')

convertToMedia

  • testNotification(data) (data is optional)

Author: Chilli#1234 (1060289353059946607)

Example:

testNotification({
  avatar: 'https://cdn.discordapp.com/avatars/1060289353059946607/a_85ef89511154380d3d2c65a528259784.png?size=4096', //avatar to display in the notification
  user: 'Stef', //username to display in the notificaiton
  content: 'This is a default message', //text to display in the notification
  sound: 'mute', //sound to play with the notification
  volume: 1 //volume of the notification
})

testNotification

  • addTopics(channelId, topics)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

addTopics('1089808002359504946', [
  {
    topic: 'Just a chat', //topic title
    summ_short: 'Just a chat between users', //topic description
    people: ['495643575669751818', '329671025312923648', '913877854243131405'], //IDs of the users in the topic
    start_id: '1101782766602960957', //ID of the first message of the topic
    end_id: '1101785821796905061', //ID of the last message of the topic
    count: 69 //message count
  }
])

addTopics

  • addDM(userId)

Author: RedNix#0816 (701339955087278091)

Example:

addDM('643945264868098049') //this adds Discord system account to your dms

addDM

  • checkPomelo(username)

Author: RedNix#0816 (701339955087278091)

Example:

checkPomelo('Stef_DP')

checkPomelo

  • searchActionHandlers(query)

Author: ✨Tolgchu✨#1452 (329671025312923648)

Example:

searchActionHandlers('channel')

searchActionHandlers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%