<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>discord.js belirli bir süre sonra yok olan mesaj göndermek - hknsoft</title>
	<atom:link href="https://hknsoft.com/etiket/discord-js-belirli-bir-sure-sonra-yok-olan-mesaj-gondermek/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Android, Yazılım, Script</description>
	<lastBuildDate>Sun, 05 Nov 2023 11:59:37 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://hknsoft.com/wp-content/uploads/2020/05/cropped-icon-hknsoft-150x150.png</url>
	<title>discord.js belirli bir süre sonra yok olan mesaj göndermek - hknsoft</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Discord.js Kendini İmha Eden Mesaj Göndermek</title>
		<link>https://hknsoft.com/discord-js-kendini-imha-eden-mesaj-gondermek/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 20 May 2021 21:33:41 +0000</pubDate>
				<category><![CDATA[Discord.js Bot Kodlama]]></category>
		<category><![CDATA[discord js bot yapımı]]></category>
		<category><![CDATA[discord js süreli mesaj göndermek]]></category>
		<category><![CDATA[discord js süreli mesaj kodu]]></category>
		<category><![CDATA[discord.js belirli bir süre sonra yok olan mesaj göndermek]]></category>
		<category><![CDATA[discord.js bot]]></category>
		<category><![CDATA[discord.js bot kodlama]]></category>
		<category><![CDATA[discord.js kendini imha eden mesaj]]></category>
		<category><![CDATA[discord.js kendini imha eden mesaj göndermek]]></category>
		<category><![CDATA[discord.js süreli mesaj göndermek]]></category>
		<category><![CDATA[discord.js v12 bot kodlama]]></category>
		<guid isPermaLink="false">https://hknsoft.com/?p=1096</guid>

					<description><![CDATA[<p>JavaScript ile Discord botu kodlarken botunuzun veya kullanıcıların gönderdiği mesajları belirli bir süre sonra silmek isteyebilirsiniz. Aşağıda vereceğim kodu kullanarak bu işlemi gerçekleştirebilirsiniz. Bu kodu <a class="mh-excerpt-more" href="https://hknsoft.com/discord-js-kendini-imha-eden-mesaj-gondermek/" title="Discord.js Kendini İmha Eden Mesaj Göndermek">[...]</a></p>
<p>The post <a href="https://hknsoft.com/discord-js-kendini-imha-eden-mesaj-gondermek/">Discord.js Kendini İmha Eden Mesaj Göndermek</a> appeared first on <a href="https://hknsoft.com">hknsoft</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-black-color has-text-color"><a href="https://nodejs.org/en" target="_blank" rel="noreferrer noopener nofollow"><strong>JavaScript</strong></a> ile <a href="https://discord.js.org/#/" target="_blank" rel="noreferrer noopener nofollow"><strong>Discord</strong></a> botu kodlarken botunuzun veya kullanıcıların gönderdiği mesajları belirli bir süre sonra silmek isteyebilirsiniz. Aşağıda vereceğim kodu kullanarak bu işlemi gerçekleştirebilirsiniz.</p>



<p>Bu kodu Message Listener&#8217;ın yani aşağıdaki kodun içerisine yerleştirmelisiniz.</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">client.on("message", message =&gt; {
	//aşağıdaki kodu buraya yerleştirmelisiniz
}</pre></div>



<p>Yukarıdaki kod kanallardaki mesajları dinler. Zaten varsayılan olarak kullanmanız gerek. Genelde mesaj ile alakalı kodlar buranın içinde çalışır.</p>



<p><strong>timeout: 5000</strong> kodu ile ne kadar süre sonra imha edileceğini belirtiyoruz. Örneğin;</p>



<ul class="wp-block-list"><li>5000 = 5 saniye</li><li>60000 = 60 saniye</li></ul>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">message.channel.send("Bu mesaj 5 saniye sonra imha olacak!")
    .then(msg =&gt; {
        msg.delete({ timeout: 5000 }) // 5000 = 5 saniye
    })
    .catch();</pre></div>



<p>Discord.js bot kodlama ile alakalı yazılar için <a href="https://hknsoft.com/kategori/discord-js-bot-kodlama/" target="_blank" rel="noreferrer noopener">tıklayabilirsiniz.</a></p>
<p>The post <a href="https://hknsoft.com/discord-js-kendini-imha-eden-mesaj-gondermek/">Discord.js Kendini İmha Eden Mesaj Göndermek</a> appeared first on <a href="https://hknsoft.com">hknsoft</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
